public class CachingDirectory extends AbstractInternalDirectory
InternalDirectoryATTRIBUTE_PASSWORD_COMPLEXITY_MESSAGE, ATTRIBUTE_PASSWORD_EXPIRATION_NOTIFICATION_PERIODS, ATTRIBUTE_PASSWORD_HISTORY_COUNT, ATTRIBUTE_PASSWORD_MAX_ATTEMPTS, ATTRIBUTE_PASSWORD_MAX_CHANGE_TIME, ATTRIBUTE_PASSWORD_MINIMUM_LENGTH, ATTRIBUTE_PASSWORD_MINIMUM_SCORE, ATTRIBUTE_PASSWORD_REGEX, ATTRIBUTE_USER_ENCRYPTION_METHOD, attributes, DESCRIPTIVE_NAME, directoryDao, directoryId, groupDao, internalDirectoryUtils, membershipDao, passwordEncoderFactory, tombstoneDao, userDao| Constructor and Description |
|---|
CachingDirectory(InternalDirectoryUtils internalDirectoryUtils,
PasswordEncoderFactory passwordEncoderFactory,
DirectoryDao directoryDao,
UserDao userDao,
GroupDao groupDao,
MembershipDao membershipDao,
TombstoneDao tombstoneDao,
PasswordConstraintsLoader passwordConstraints) |
| Modifier and Type | Method and Description |
|---|---|
BatchResult<Group> |
addAllGroups(Set<GroupTemplate> groups) |
BatchResult<User> |
addAllUsers(Set<UserTemplateWithCredentialAndAttributes> users) |
BatchResult<String> |
addAllUsersToGroup(Set<String> userNames,
String groupName) |
Group |
addLocalGroup(GroupTemplate group) |
User |
addUser(UserTemplate user,
PasswordCredential credential)
Adds a user with no special added logic.
|
UserWithAttributes |
addUser(UserTemplateWithAttributes user,
PasswordCredential credential)
Adds a user without modifying it, including storing its attributes.
|
boolean |
isLocalUserStatusEnabled()
Caching directories can be configured to support local user statuses.
|
BatchResult<String> |
removeGroupsFromGroup(Collection<String> childGroupNames,
String groupName) |
BatchResult<String> |
removeUsersFromGroup(Set<String> usernames,
String groupName) |
User |
updateUser(UserTemplate user) |
addAllGroupsToGroup, addGroup, addGroupToGroup, addUserToGroup, addUserToGroups, authenticate, calculatePostPasswordUpdateAttributes, countDirectMembersOfGroup, currentPrincipalInvalidPasswordAttempts, encryptedCredential, expireAllPasswords, findGroupByName, findGroupWithAttributesByName, findUserByExternalId, findUserByName, findUserWithAttributesByName, forceRenameUser, getAllUserExternalIds, getAuthoritativeDirectory, getDescriptiveName, getDirectoryId, getEncoder, getGroupCount, getKeys, getMemberships, getPasswordConstraints, getUserAvatarByName, getUserCount, getValue, getValues, isEmpty, isGroupDirectGroupMember, isRolesDisabled, isUserDirectGroupMember, removeAllGroups, removeAllUsers, removeGroup, removeGroupAttributes, removeGroupFromGroup, removeUser, removeUserAttributes, removeUserFromGroup, renameGroup, renameUser, requiresPasswordChange, searchGroupRelationships, searchGroupRelationshipsGroupedByName, searchGroups, searchUsers, setAttributes, setDirectoryId, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, supportsNestedGroups, supportsPasswordExpiration, supportsSettingEncryptedCredential, testConnection, updateGroup, updateUserCredential, userAuthenticatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocallyFilteredGroupNames, updateUserFromRemoteDirectorypublic CachingDirectory(InternalDirectoryUtils internalDirectoryUtils, PasswordEncoderFactory passwordEncoderFactory, DirectoryDao directoryDao, UserDao userDao, GroupDao groupDao, MembershipDao membershipDao, TombstoneDao tombstoneDao, PasswordConstraintsLoader passwordConstraints)
public User addUser(UserTemplate user, PasswordCredential credential) throws InvalidCredentialException, InvalidUserException, UserAlreadyExistsException, OperationFailedException
user - template of the user to add.credential - password. May be null, since JIRA creates a user in two stepsInvalidCredentialException - the password does not match the regular
expression standard defined by the directory.InvalidUserExceptionUserAlreadyExistsExceptionOperationFailedExceptionpublic UserWithAttributes addUser(UserTemplateWithAttributes user, PasswordCredential credential) throws InvalidCredentialException, InvalidUserException, UserAlreadyExistsException, OperationFailedException
addUser in interface RemoteDirectoryaddUser in class AbstractInternalDirectoryuser - template of the user to add.credential - password. May be null, since JIRA creates a user in two stepsInvalidCredentialException - the password does not match the regular
expression standard defined by the directory.InvalidUserExceptionUserAlreadyExistsExceptionOperationFailedExceptionpublic Group addLocalGroup(GroupTemplate group) throws InvalidGroupException, OperationFailedException
addLocalGroup in interface InternalRemoteDirectoryaddLocalGroup in class AbstractInternalDirectoryInvalidGroupExceptionOperationFailedExceptionpublic BatchResult<User> addAllUsers(Set<UserTemplateWithCredentialAndAttributes> users)
public BatchResult<Group> addAllGroups(Set<GroupTemplate> groups)
public BatchResult<String> addAllUsersToGroup(Set<String> userNames, String groupName) throws GroupNotFoundException
GroupNotFoundExceptionpublic BatchResult<String> removeUsersFromGroup(Set<String> usernames, String groupName) throws GroupNotFoundException
removeUsersFromGroup in interface InternalRemoteDirectoryremoveUsersFromGroup in class AbstractInternalDirectoryGroupNotFoundExceptionpublic BatchResult<String> removeGroupsFromGroup(Collection<String> childGroupNames, String groupName) throws GroupNotFoundException
removeGroupsFromGroup in interface InternalRemoteDirectoryremoveGroupsFromGroup in class AbstractInternalDirectoryGroupNotFoundExceptionpublic User updateUser(UserTemplate user) throws InvalidUserException, UserNotFoundException
public boolean isLocalUserStatusEnabled()
upgrade.tasks.UpgradeTask622Copyright © 2023 Atlassian. All rights reserved.