|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.directory.AbstractInternalDirectory
com.atlassian.crowd.directory.InternalDirectory
public class InternalDirectory
Internal directory connector.
Stores all entity information to the database used by the Crowd Server.
Note that this implementation is used for an Actual InternalDirectory, and there is a related class
CachingDirectory that does local caching of remote objects.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.directory.AbstractInternalDirectory |
|---|
ATTRIBUTE_PASSWORD_HISTORY_COUNT, ATTRIBUTE_PASSWORD_MAX_ATTEMPTS, ATTRIBUTE_PASSWORD_MAX_CHANGE_TIME, ATTRIBUTE_PASSWORD_REGEX, ATTRIBUTE_USER_ENCRYPTION_METHOD, attributes, DESCRIPTIVE_NAME, directoryDao, directoryId, groupDao, internalDirectoryUtils, membershipDao, passwordEncoderFactory, userDao |
| Constructor Summary | |
|---|---|
InternalDirectory(InternalDirectoryUtils internalDirectoryUtils,
PasswordEncoderFactory passwordEncoderFactory,
DirectoryDao directoryDao,
UserDao userDao,
GroupDao groupDao,
MembershipDao membershipDao)
|
|
| Method Summary | |
|---|---|
BatchResult<Group> |
addAllGroups(java.util.Set<GroupTemplate> groups)
Adds a collection of groups to the directory. |
BatchResult<User> |
addAllUsers(java.util.Set<UserTemplateWithCredentialAndAttributes> users)
Adds a collection of users to the directory. |
BatchResult<java.lang.String> |
addAllUsersToGroup(java.util.Set<java.lang.String> userNames,
java.lang.String groupName)
Adds a collection of users to a group. |
Group |
addLocalGroup(GroupTemplate group)
Adds a "local" group to the directory. |
User |
addUser(UserTemplate user,
PasswordCredential credential)
Adds a user and the following custom attributes: - RemotePrincipalConstants.PASSWORD_LASTCHANGED set to the current time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalDirectory(InternalDirectoryUtils internalDirectoryUtils,
PasswordEncoderFactory passwordEncoderFactory,
DirectoryDao directoryDao,
UserDao userDao,
GroupDao groupDao,
MembershipDao membershipDao)
| Method Detail |
|---|
public User addUser(UserTemplate 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 steps
InvalidCredentialException - the password does not match the regular expression standard defined by the directory.
InvalidUserException - The supplied user is invalid.
UserAlreadyExistsException - The user already exists
OperationFailedException - underlying directory implementation failed to execute the operation.
public Group addLocalGroup(GroupTemplate group)
throws OperationFailedException
InternalRemoteDirectory
addLocalGroup in interface InternalRemoteDirectoryaddLocalGroup in class AbstractInternalDirectorygroup - template of the group to add.
OperationFailedException - underlying directory implementation failed to execute the operation.public BatchResult<User> addAllUsers(java.util.Set<UserTemplateWithCredentialAndAttributes> users)
InternalRemoteDirectory
users - templates of users to add.
public BatchResult<Group> addAllGroups(java.util.Set<GroupTemplate> groups)
InternalRemoteDirectory
groups - templates of groups to add.
public BatchResult<java.lang.String> addAllUsersToGroup(java.util.Set<java.lang.String> userNames,
java.lang.String groupName)
throws GroupNotFoundException
InternalRemoteDirectory
userNames - names of users to add to group.groupName - name of group to add users to.
GroupNotFoundException - group with supplied groupName does not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||