|
||||||||||
| 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 |
|---|
| Constructor Summary | |
|---|---|
InternalDirectory(InternalDirectoryUtils internalDirectoryUtils,
PasswordEncoderFactory passwordEncoderFactory,
DirectoryDao directoryDao,
UserDao userDao,
GroupDao groupDao,
MembershipDao membershipDao,
PasswordConstraintsLoader passwordConstraints)
|
|
| Method Summary | |
|---|---|
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 and the following custom attributes: - RemotePrincipalConstants.PASSWORD_LASTCHANGED set to the current time. |
static String |
generateUniqueIdentifier()
Generates a unique identifier. |
boolean |
isLocalUserStatusEnabled()
Internal directories never support local user statuses. |
protected boolean |
isUserExternalIdReadOnly()
When an InternalDirectory is used as an internal directory, it must manage the values of the external_id column. |
User |
updateUser(UserTemplate user)
|
| 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,
PasswordConstraintsLoader passwordConstraints)
| 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
UserAlreadyExistsException
OperationFailedExceptionpublic static String generateUniqueIdentifier()
public Group addLocalGroup(GroupTemplate group)
throws OperationFailedException
addLocalGroup in interface InternalRemoteDirectoryaddLocalGroup in class AbstractInternalDirectoryOperationFailedExceptionpublic BatchResult<User> addAllUsers(Set<UserTemplateWithCredentialAndAttributes> users)
public BatchResult<Group> addAllGroups(Set<GroupTemplate> groups)
public BatchResult<String> addAllUsersToGroup(Set<String> userNames,
String groupName)
throws GroupNotFoundException
GroupNotFoundException
public User updateUser(UserTemplate user)
throws InvalidUserException,
UserNotFoundException
InvalidUserException
UserNotFoundExceptionpublic boolean isLocalUserStatusEnabled()
protected boolean isUserExternalIdReadOnly()
true in this class because it manages the external_id values and does not allow
mutability.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||