public class RecoveryModeRemoteDirectory extends Object implements RemoteDirectory
In case of a broken deployment or if the remote directory is down, the crowd admin will not be able to login to Crowd if it's account info is stored in that remote directory.
In this case, sysops can enable this "Proxy" directory, which essentially adds a new directory contains an admin user with a customisable password, and let the crowd admin to login to crowd and fix the deployment issue.
| Constructor and Description |
|---|
RecoveryModeRemoteDirectory(RecoveryModeDirectory directory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocallyFilteredGroupNames, updateUserFromRemoteDirectory, userAuthenticatedpublic RecoveryModeRemoteDirectory(RecoveryModeDirectory directory)
public long getDirectoryId()
getDirectoryId in interface RemoteDirectorypublic void setDirectoryId(long directoryId)
setDirectoryId in interface RemoteDirectorypublic String getDescriptiveName()
getDescriptiveName in interface RemoteDirectorypublic void setAttributes(Map<String,String> attributes)
setAttributes in interface RemoteDirectorypublic User authenticate(String name, PasswordCredential credential) throws UserNotFoundException, InactiveAccountException, InvalidAuthenticationException, ExpiredCredentialException, OperationFailedException
authenticate in interface RemoteDirectoryUserNotFoundExceptionInactiveAccountExceptionInvalidAuthenticationExceptionExpiredCredentialExceptionOperationFailedExceptionpublic User findUserByName(String name) throws UserNotFoundException, OperationFailedException
findUserByName in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic UserWithAttributes findUserWithAttributesByName(String name) throws UserNotFoundException, OperationFailedException
findUserWithAttributesByName in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic User findUserByExternalId(String externalId) throws UserNotFoundException, OperationFailedException
findUserByExternalId in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic User addUser(UserTemplate user, PasswordCredential credential) throws InvalidUserException, InvalidCredentialException, UserAlreadyExistsException, OperationFailedException
addUser in interface RemoteDirectoryInvalidUserExceptionInvalidCredentialExceptionUserAlreadyExistsExceptionOperationFailedExceptionpublic UserWithAttributes addUser(UserTemplateWithAttributes user, PasswordCredential credential) throws InvalidUserException, InvalidCredentialException, UserAlreadyExistsException, OperationFailedException
addUser in interface RemoteDirectoryInvalidUserExceptionInvalidCredentialExceptionUserAlreadyExistsExceptionOperationFailedExceptionpublic User updateUser(UserTemplate user) throws InvalidUserException, UserNotFoundException, OperationFailedException
updateUser in interface RemoteDirectoryInvalidUserExceptionUserNotFoundExceptionOperationFailedExceptionpublic void updateUserCredential(String username, PasswordCredential credential) throws UserNotFoundException, InvalidCredentialException, OperationFailedException
updateUserCredential in interface RemoteDirectoryUserNotFoundExceptionInvalidCredentialExceptionOperationFailedExceptionpublic User renameUser(String oldName, String newName) throws UserNotFoundException, InvalidUserException, UserAlreadyExistsException, OperationFailedException
renameUser in interface RemoteDirectoryUserNotFoundExceptionInvalidUserExceptionUserAlreadyExistsExceptionOperationFailedExceptionpublic void storeUserAttributes(String username, Map<String,Set<String>> attributes) throws UserNotFoundException, OperationFailedException
storeUserAttributes in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic void removeUserAttributes(String username, String attributeName) throws UserNotFoundException, OperationFailedException
removeUserAttributes in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic void removeUser(String name) throws UserNotFoundException, OperationFailedException
removeUser in interface RemoteDirectoryUserNotFoundExceptionOperationFailedExceptionpublic <T> List<T> searchUsers(EntityQuery<T> query) throws OperationFailedException
searchUsers in interface RemoteDirectoryOperationFailedExceptionpublic Group findGroupByName(String name) throws GroupNotFoundException, OperationFailedException
findGroupByName in interface RemoteDirectoryGroupNotFoundExceptionOperationFailedExceptionpublic GroupWithAttributes findGroupWithAttributesByName(String name) throws GroupNotFoundException, OperationFailedException
findGroupWithAttributesByName in interface RemoteDirectoryGroupNotFoundExceptionOperationFailedExceptionpublic Group addGroup(GroupTemplate group) throws InvalidGroupException, OperationFailedException
addGroup in interface RemoteDirectoryInvalidGroupExceptionOperationFailedExceptionpublic Group updateGroup(GroupTemplate group) throws InvalidGroupException, GroupNotFoundException, ReadOnlyGroupException, OperationFailedException
updateGroup in interface RemoteDirectoryInvalidGroupExceptionGroupNotFoundExceptionReadOnlyGroupExceptionOperationFailedExceptionpublic Group renameGroup(String oldName, String newName) throws GroupNotFoundException, InvalidGroupException, OperationFailedException
renameGroup in interface RemoteDirectoryGroupNotFoundExceptionInvalidGroupExceptionOperationFailedExceptionpublic void storeGroupAttributes(String groupName, Map<String,Set<String>> attributes) throws GroupNotFoundException, OperationFailedException
storeGroupAttributes in interface RemoteDirectoryGroupNotFoundExceptionOperationFailedExceptionpublic void removeGroupAttributes(String groupName, String attributeName) throws GroupNotFoundException, OperationFailedException
removeGroupAttributes in interface RemoteDirectoryGroupNotFoundExceptionOperationFailedExceptionpublic void removeGroup(String name) throws GroupNotFoundException, ReadOnlyGroupException, OperationFailedException
removeGroup in interface RemoteDirectoryGroupNotFoundExceptionReadOnlyGroupExceptionOperationFailedExceptionpublic <T> List<T> searchGroups(EntityQuery<T> query) throws OperationFailedException
searchGroups in interface RemoteDirectoryOperationFailedExceptionpublic boolean isUserDirectGroupMember(String username, String groupName) throws OperationFailedException
isUserDirectGroupMember in interface RemoteDirectoryOperationFailedExceptionpublic boolean isGroupDirectGroupMember(String childGroup, String parentGroup) throws OperationFailedException
isGroupDirectGroupMember in interface RemoteDirectoryOperationFailedExceptionpublic BoundedCount countDirectMembersOfGroup(String groupName, int querySizeHint) throws OperationFailedException
countDirectMembersOfGroup in interface RemoteDirectoryOperationFailedExceptionpublic void addUserToGroup(String username, String groupName) throws GroupNotFoundException, UserNotFoundException, ReadOnlyGroupException, OperationFailedException, MembershipAlreadyExistsException
addUserToGroup in interface RemoteDirectoryGroupNotFoundExceptionUserNotFoundExceptionReadOnlyGroupExceptionOperationFailedExceptionMembershipAlreadyExistsExceptionpublic void addGroupToGroup(String childGroup, String parentGroup) throws GroupNotFoundException, InvalidMembershipException, ReadOnlyGroupException, OperationFailedException, MembershipAlreadyExistsException
addGroupToGroup in interface RemoteDirectoryGroupNotFoundExceptionInvalidMembershipExceptionReadOnlyGroupExceptionOperationFailedExceptionMembershipAlreadyExistsExceptionpublic void removeUserFromGroup(String username, String groupName) throws GroupNotFoundException, UserNotFoundException, MembershipNotFoundException, ReadOnlyGroupException, OperationFailedException
removeUserFromGroup in interface RemoteDirectoryGroupNotFoundExceptionUserNotFoundExceptionMembershipNotFoundExceptionReadOnlyGroupExceptionOperationFailedExceptionpublic void removeGroupFromGroup(String childGroup, String parentGroup) throws GroupNotFoundException, InvalidMembershipException, MembershipNotFoundException, ReadOnlyGroupException, OperationFailedException
removeGroupFromGroup in interface RemoteDirectoryGroupNotFoundExceptionInvalidMembershipExceptionMembershipNotFoundExceptionReadOnlyGroupExceptionOperationFailedExceptionpublic void expireAllPasswords()
throws OperationFailedException
expireAllPasswords in interface RemoteDirectoryOperationFailedExceptionpublic <T> List<T> searchGroupRelationships(MembershipQuery<T> query) throws OperationFailedException
searchGroupRelationships in interface RemoteDirectoryOperationFailedExceptionpublic void testConnection()
throws OperationFailedException
testConnection in interface RemoteDirectoryOperationFailedExceptionpublic boolean supportsInactiveAccounts()
supportsInactiveAccounts in interface RemoteDirectorypublic boolean supportsNestedGroups()
supportsNestedGroups in interface RemoteDirectorypublic boolean supportsPasswordExpiration()
supportsPasswordExpiration in interface RemoteDirectoryfalse, alwayspublic boolean supportsSettingEncryptedCredential()
supportsSettingEncryptedCredential in interface RemoteDirectorypublic boolean isRolesDisabled()
isRolesDisabled in interface RemoteDirectorypublic Iterable<Membership> getMemberships() throws OperationFailedException
getMemberships in interface RemoteDirectoryOperationFailedExceptionpublic RemoteDirectory getAuthoritativeDirectory()
getAuthoritativeDirectory in interface RemoteDirectorypublic Set<String> getValues(String key)
getValues in interface Attributespublic String getValue(String key)
getValue in interface Attributespublic Set<String> getKeys()
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributespublic AvatarReference getUserAvatarByName(String username, int sizeHint) throws OperationFailedException
getUserAvatarByName in interface RemoteDirectoryOperationFailedExceptionCopyright © 2023 Atlassian. All rights reserved.