public class MicrosoftGraphQueryTranslator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_ENABLED |
static ODataSelect |
DELTA_QUERY_GROUP_SELECT |
static String |
DISPLAY_NAME |
static String |
FIRST_NAME |
static ODataSelect |
GROUP_SELECT |
static ODataSelect |
GROUPNAME_SELECT |
static String |
ID |
static String |
LAST_NAME |
static String |
MAIL |
static ODataExpand |
MEMBERS_EXPAND |
static ODataSelect |
USER_SELECT |
static String |
USERNAME |
Constructor and Description |
---|
MicrosoftGraphQueryTranslator() |
Modifier and Type | Method and Description |
---|---|
GraphQuery |
convert(EntityQuery query,
String usernameAttribute)
Converts a Crowd EntityQuery to a GraphQuery that should be used to fetch the first page of results.
|
ODataSelect |
resolveAzureAdColumnsForSingleEntityTypeQuery(EntityDescriptor entity,
Class<?> returnType) |
ODataSelect |
resolveAzureAdColumnsForSingleEntityTypeQuery(EntityDescriptor entity,
FetchMode fetchMode) |
ODataExpand |
resolveAzureAdNavigationPropertiesForSingleEntityTypeQuery(EntityDescriptor entity,
FetchMode fetchMode) |
ODataSelect |
translateColumnsForUsersAndGroupsQuery(FetchMode fetchMode) |
ODataFilter |
translateSearchRestriction(EntityDescriptor entityDescriptor,
SearchRestriction restriction,
String usernameAttribute)
Converts a search restriction to an ODataFilter, which can be used in a graph query
|
public static final String USERNAME
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String DISPLAY_NAME
public static final String MAIL
public static final String ID
public static final String ACCOUNT_ENABLED
public static final ODataSelect USER_SELECT
public static final ODataExpand MEMBERS_EXPAND
public static final ODataSelect GROUPNAME_SELECT
public static final ODataSelect GROUP_SELECT
public static final ODataSelect DELTA_QUERY_GROUP_SELECT
public GraphQuery convert(EntityQuery query, String usernameAttribute)
query
- the Crowd query to convertusernameAttribute
- name of the attribute that username restriction should be matched topublic ODataSelect resolveAzureAdColumnsForSingleEntityTypeQuery(EntityDescriptor entity, Class<?> returnType)
entity
- the entity for which we're queryingreturnType
- the return type of the Crowd querypublic ODataFilter translateSearchRestriction(EntityDescriptor entityDescriptor, SearchRestriction restriction, String usernameAttribute)
entityDescriptor
- the entityDescriptor of the entity that will be queried forrestriction
- the restriction to translateusernameAttribute
- name of the attribute that username restriction should be matched topublic ODataSelect resolveAzureAdColumnsForSingleEntityTypeQuery(EntityDescriptor entity, FetchMode fetchMode)
entity
- the entity for which we're queryingfetchMode
- the types of columns that should be fetchedpublic ODataExpand resolveAzureAdNavigationPropertiesForSingleEntityTypeQuery(EntityDescriptor entity, FetchMode fetchMode)
entity
- the entity for which we're queryingfetchMode
- the types of navigation properties that should be fetchedpublic ODataSelect translateColumnsForUsersAndGroupsQuery(FetchMode fetchMode)
fetchMode
- the types of columns that should be fetchedCopyright © 2021 Atlassian. All rights reserved.