Class AzureAdRestClient
java.lang.Object
com.atlassian.crowd.directory.rest.AzureAdRestClient
The client used to communicate with Microsoft Entra ID via Microsoft Graph. Expects and returns Microsoft Graph REST entities.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAzureAdRestClient(javax.ws.rs.client.Client client, AzureApiUriResolver endpointDataProvider, IoUtilsWrapper ioUtilsWrapper) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.client.ClientgetDirectChildrenOfGroup(String groupId, ODataSelect select) getDirectParentsOfGroup(String groupId, ODataSelect select) getDirectParentsOfUser(String nameOrExternalId, ODataSelect select) <T extends PageableGraphList>
TgetNextPage(String nextLink, Class<T> resultsClass) <T extends PageableGraphList>
TgetNextPage(String nextLink, Class<T> resultsClass, ODataTop limit) javax.ws.rs.core.ResponsehandleInvocation(int attempts, javax.ws.rs.client.Invocation invocation) javax.ws.rs.core.ResponsehandleInvocation(javax.ws.rs.client.Invocation invocation) Invokes the givenInvocationwith the default number of attempts.performGroupsDeltaQuery(MicrosoftGraphQueryParam... parameters) performUsersDeltaQuery(MicrosoftGraphQueryParam parameter) searchGroups(GraphQuery query) searchUsers(GraphQuery query) boolean
-
Field Details
-
GRAPH_API_VERSION
- See Also:
-
GRAPH_USERS_ENDPOINT_SUFFIX
- See Also:
-
GRAPH_GROUPS_ENDPOINT_SUFFIX
- See Also:
-
METADATA_ENDPOINT_SUFFIX
- See Also:
-
MEMBER_OF_NAVIGATIONAL_PROPERTY
- See Also:
-
MEMBERS_NAVIGATIONAL_PROPERTY
- See Also:
-
DELTA_QUERY_ENDPOINT_SUFFIX
- See Also:
-
TRASH_ENDPOINT_SUFFIX
- See Also:
-
COLLECTION_TYPE_FORMAT
- See Also:
-
USER_SUFFIX
- See Also:
-
GROUP_SUFFIX
- See Also:
-
ATTEMPTS
public static final int ATTEMPTS- See Also:
-
-
Constructor Details
-
AzureAdRestClient
public AzureAdRestClient(javax.ws.rs.client.Client client, AzureApiUriResolver endpointDataProvider, IoUtilsWrapper ioUtilsWrapper)
-
-
Method Details
-
getClient
public javax.ws.rs.client.Client getClient() -
searchUsers
- Throws:
OperationFailedException
-
searchGroups
- Throws:
OperationFailedException
-
getDirectParentsOfUser
public GraphDirectoryObjectList getDirectParentsOfUser(String nameOrExternalId, ODataSelect select) throws OperationFailedException - Throws:
OperationFailedException
-
getDirectParentsOfGroup
public GraphDirectoryObjectList getDirectParentsOfGroup(String groupId, ODataSelect select) throws OperationFailedException - Throws:
OperationFailedException
-
getDirectChildrenOfGroup
public GraphDirectoryObjectList getDirectChildrenOfGroup(String groupId, ODataSelect select) throws OperationFailedException - Throws:
OperationFailedException
-
performUsersDeltaQuery
public GraphDeltaQueryUserList performUsersDeltaQuery(MicrosoftGraphQueryParam parameter) throws OperationFailedException - Throws:
OperationFailedException
-
performGroupsDeltaQuery
public GraphDeltaQueryGroupList performGroupsDeltaQuery(MicrosoftGraphQueryParam... parameters) throws OperationFailedException - Throws:
OperationFailedException
-
supportsDeltaQuery
public boolean supportsDeltaQuery() -
getGraphBaseResource
-
getNextPage
public <T extends PageableGraphList> T getNextPage(String nextLink, Class<T> resultsClass) throws OperationFailedException - Throws:
OperationFailedException
-
getNextPage
public <T extends PageableGraphList> T getNextPage(String nextLink, Class<T> resultsClass, ODataTop limit) throws OperationFailedException - Throws:
OperationFailedException
-
handleInvocation
public javax.ws.rs.core.Response handleInvocation(javax.ws.rs.client.Invocation invocation) throws OperationFailedException Invokes the givenInvocationwith the default number of attempts.- Throws:
OperationFailedException
-
handleInvocation
public javax.ws.rs.core.Response handleInvocation(int attempts, javax.ws.rs.client.Invocation invocation) throws OperationFailedException - Throws:
OperationFailedException
-