public class AzureAdDirectory extends Object implements RemoteDirectory
| Modifier and Type | Field and Description |
|---|---|
static String |
ALTERNATIVE_USERNAME_ATTRIBUTE |
static String |
AUTHORITY_API_ENDPOINT_ATTRIBUTE |
static String |
CUSTOM_REGION_ATTRIBUTE_VALUE |
static String |
FILTERED_GROUPS_ATTRIBUTE |
static String |
GRAPH_API_ENDPOINT_ATTRIBUTE |
static String |
GROUP_FILTERING_ENABLED_ATTRIBUTE |
static int |
MAX_RESTRICTIONS_PER_QUERY |
static String |
NATIVE_APP_ID_ATTRIBUTE |
static String |
NOT_IMPLEMENTED |
static String |
REGION_ATTRIBUTE |
static String |
TENANT_ID_ATTRIBUTE |
static String |
WEBAPP_CLIENT_ID_ATTRIBUTE |
static String |
WEBAPP_CLIENT_SECRET_ATTRIBUTE |
| Constructor and Description |
|---|
AzureAdDirectory(AzureAdRestClientFactory restClientFactory,
MicrosoftGraphQueryTranslator graphQueryTranslator,
AzureAdRestEntityMapper restEntityMapper,
UserCredentialVerifierFactory credentialVerifierFactory,
AzureApiUriResolverFactory endpointDataProviderFactory,
com.atlassian.crowd.embedded.spi.DcLicenseChecker dcLicenseChecker) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateUserFromRemoteDirectory, userAuthenticatedpublic static final String WEBAPP_CLIENT_ID_ATTRIBUTE
public static final String WEBAPP_CLIENT_SECRET_ATTRIBUTE
public static final String TENANT_ID_ATTRIBUTE
public static final String NATIVE_APP_ID_ATTRIBUTE
public static final String GRAPH_API_ENDPOINT_ATTRIBUTE
public static final String AUTHORITY_API_ENDPOINT_ATTRIBUTE
public static final String REGION_ATTRIBUTE
public static final String CUSTOM_REGION_ATTRIBUTE_VALUE
public static final String FILTERED_GROUPS_ATTRIBUTE
public static final String GROUP_FILTERING_ENABLED_ATTRIBUTE
public static final String NOT_IMPLEMENTED
public static final String ALTERNATIVE_USERNAME_ATTRIBUTE
public static final int MAX_RESTRICTIONS_PER_QUERY
public AzureAdDirectory(AzureAdRestClientFactory restClientFactory, MicrosoftGraphQueryTranslator graphQueryTranslator, AzureAdRestEntityMapper restEntityMapper, UserCredentialVerifierFactory credentialVerifierFactory, AzureApiUriResolverFactory endpointDataProviderFactory, com.atlassian.crowd.embedded.spi.DcLicenseChecker dcLicenseChecker)
@Nullable public Set<String> getValues(String key)
getValues in interface com.atlassian.crowd.embedded.api.Attributes@Nullable public String getValue(String key)
getValue in interface com.atlassian.crowd.embedded.api.Attributespublic Set<String> getKeys()
getKeys in interface com.atlassian.crowd.embedded.api.Attributespublic boolean isEmpty()
isEmpty in interface com.atlassian.crowd.embedded.api.Attributespublic long getDirectoryId()
getDirectoryId in interface RemoteDirectorypublic void setDirectoryId(long directoryId)
setDirectoryId in interface RemoteDirectory@Nonnull public String getDescriptiveName()
getDescriptiveName in interface RemoteDirectorypublic void setAttributes(Map<String,String> attributes)
setAttributes in interface RemoteDirectory@Nonnull public User findUserByName(String name) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
findUserByName in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public UserWithAttributes findUserWithAttributesByName(String name) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
findUserWithAttributesByName in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public User findUserByExternalId(String externalId) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
findUserByExternalId in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public User authenticate(String name, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.InactiveAccountException, com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.ExpiredCredentialException, com.atlassian.crowd.exception.OperationFailedException
authenticate in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.InactiveAccountExceptioncom.atlassian.crowd.exception.InvalidAuthenticationExceptioncom.atlassian.crowd.exception.ExpiredCredentialExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public User addUser(UserTemplate user, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.UserAlreadyExistsException, com.atlassian.crowd.exception.OperationFailedException
public UserWithAttributes addUser(UserTemplateWithAttributes user, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.UserAlreadyExistsException, com.atlassian.crowd.exception.OperationFailedException
@Nonnull public User updateUser(UserTemplate user) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
public void updateUserCredential(String username, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.OperationFailedException
@Nonnull public User renameUser(String oldName, String newName) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.UserAlreadyExistsException, com.atlassian.crowd.exception.OperationFailedException
public void storeUserAttributes(String username, Map<String,Set<String>> attributes) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
storeUserAttributes in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionpublic void removeUserAttributes(String username, String attributeName) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
removeUserAttributes in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionpublic void removeUser(String name) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
removeUser in interface RemoteDirectorycom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public <T> List<T> searchUsers(EntityQuery<T> query) throws com.atlassian.crowd.exception.OperationFailedException
searchUsers in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedException@Nonnull public Group findGroupByName(String name) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
findGroupByName in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public GroupWithAttributes findGroupWithAttributesByName(String name) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
findGroupWithAttributesByName in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public Group addGroup(GroupTemplate group) throws com.atlassian.crowd.exception.InvalidGroupException, com.atlassian.crowd.exception.OperationFailedException
addGroup in interface RemoteDirectorycom.atlassian.crowd.exception.InvalidGroupExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public Group updateGroup(GroupTemplate group) throws com.atlassian.crowd.exception.InvalidGroupException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException
@Nonnull public Group renameGroup(String oldName, String newName) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.InvalidGroupException, com.atlassian.crowd.exception.OperationFailedException
public void storeGroupAttributes(String groupName, Map<String,Set<String>> attributes) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
storeGroupAttributes in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionpublic void removeGroupAttributes(String groupName, String attributeName) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
removeGroupAttributes in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionpublic void removeGroup(String name) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException
@Nonnull public <T> List<T> searchGroups(EntityQuery<T> query) throws com.atlassian.crowd.exception.OperationFailedException
searchGroups in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedExceptionpublic boolean isUserDirectGroupMember(String username, String groupName) throws com.atlassian.crowd.exception.OperationFailedException
isUserDirectGroupMember in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedExceptionpublic boolean isGroupDirectGroupMember(String childGroup, String parentGroup) throws com.atlassian.crowd.exception.OperationFailedException
isGroupDirectGroupMember in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedException@Nonnull public BoundedCount countDirectMembersOfGroup(String groupName, int querySizeHint) throws com.atlassian.crowd.exception.OperationFailedException
countDirectMembersOfGroup in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedExceptionpublic void addUserToGroup(String username, String groupName) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.MembershipAlreadyExistsException
addUserToGroup in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.ReadOnlyGroupExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.MembershipAlreadyExistsExceptionpublic void addGroupToGroup(String childGroup, String parentGroup) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.InvalidMembershipException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.MembershipAlreadyExistsException
addGroupToGroup in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.InvalidMembershipExceptioncom.atlassian.crowd.exception.ReadOnlyGroupExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.MembershipAlreadyExistsExceptionpublic void removeUserFromGroup(String username, String groupName) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.MembershipNotFoundException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException
removeUserFromGroup in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.MembershipNotFoundExceptioncom.atlassian.crowd.exception.ReadOnlyGroupExceptioncom.atlassian.crowd.exception.OperationFailedExceptionpublic void removeGroupFromGroup(String childGroup, String parentGroup) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.InvalidMembershipException, com.atlassian.crowd.exception.MembershipNotFoundException, com.atlassian.crowd.exception.ReadOnlyGroupException, com.atlassian.crowd.exception.OperationFailedException
removeGroupFromGroup in interface RemoteDirectorycom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.InvalidMembershipExceptioncom.atlassian.crowd.exception.MembershipNotFoundExceptioncom.atlassian.crowd.exception.ReadOnlyGroupExceptioncom.atlassian.crowd.exception.OperationFailedException@Nonnull public <T> List<T> searchGroupRelationships(MembershipQuery<T> query) throws com.atlassian.crowd.exception.OperationFailedException
searchGroupRelationships in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedExceptionpublic void testConnection()
throws com.atlassian.crowd.exception.OperationFailedException
testConnection in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedExceptionpublic boolean supportsInactiveAccounts()
supportsInactiveAccounts in interface RemoteDirectorypublic boolean supportsNestedGroups()
supportsNestedGroups in interface RemoteDirectorypublic boolean supportsPasswordExpiration()
supportsPasswordExpiration in interface RemoteDirectorypublic boolean supportsSettingEncryptedCredential()
supportsSettingEncryptedCredential in interface RemoteDirectorypublic boolean isRolesDisabled()
isRolesDisabled in interface RemoteDirectory@Nonnull public Iterable<Membership> getMemberships() throws com.atlassian.crowd.exception.OperationFailedException
getMemberships in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedException@Nonnull public RemoteDirectory getAuthoritativeDirectory()
getAuthoritativeDirectory in interface RemoteDirectorypublic void expireAllPasswords()
throws com.atlassian.crowd.exception.OperationFailedException
expireAllPasswords in interface RemoteDirectorycom.atlassian.crowd.exception.OperationFailedException@Nullable public AvatarReference getUserAvatarByName(String username, int sizeHint)
getUserAvatarByName in interface RemoteDirectorypublic Optional<Set<String>> getLocallyFilteredGroupNames()
getLocallyFilteredGroupNames in interface RemoteDirectorypublic boolean isGroupFilteringEnabled()
public List<GroupWithAttributes> getFilteredGroups() throws com.atlassian.crowd.exception.OperationFailedException
public DeltaQueryResult<UserWithAttributes> performUsersDeltaQuery() throws com.atlassian.crowd.exception.OperationFailedException
public DeltaQueryResult<GroupWithMembershipChanges> performGroupsDeltaQuery() throws com.atlassian.crowd.exception.OperationFailedException
public DeltaQueryResult<GroupWithMembershipChanges> fetchGroupChanges(String syncToken) throws com.atlassian.crowd.exception.OperationFailedException
public DeltaQueryResult<UserWithAttributes> fetchUserChanges(String syncToken) throws com.atlassian.crowd.exception.OperationFailedException
public boolean supportsDeltaQueryApi()
public AzureMembershipHelper createMembershipHelper()
public AzureAdRestClient getRestClient()
public MicrosoftGraphQueryTranslator getTranslator()
public boolean isLocalGroupsEnabled()
public String getAlternativeUsernameAttribute()
Copyright © 2023 Atlassian. All rights reserved.