|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalRemoteDirectory
This interface represents a specialised extension of RemoteDirectory that is used by InternalDirectories.
findUserByName(String) and findGroupByName(String) have been redefined to return
TimestampedUser and InternalDirectoryGroup. The InternalDirectoryGroup allows clients to
determine whether the group is "local".
| Method Summary | |
|---|---|
BatchResult<Group> |
addAllGroups(Set<GroupTemplate> groups)
Adds a collection of groups to the directory. |
BatchResult<User> |
addAllUsers(Set<UserTemplateWithCredentialAndAttributes> users)
Adds a collection of users to the directory. |
BatchResult<String> |
addAllUsersToGroup(Set<String> userNames,
String groupName)
Adds a collection of users to a group. |
Group |
addLocalGroup(GroupTemplate group)
Adds a "local" group to the directory. |
InternalDirectoryGroup |
findGroupByName(String name)
Finds the group that matches the supplied name. |
TimestampedUser |
findUserByExternalId(String externalId)
Finds the user that matches the supplied externalId. |
TimestampedUser |
findUserByName(String name)
Finds the user that matches the supplied name. |
User |
forceRenameUser(User oldUser,
String newName)
Forces a rename on the given user in this directory. |
boolean |
isLocalUserStatusEnabled()
Returns true if user active status is updated independently in the Crowd cache and the remote
directory. |
BatchResult<String> |
removeAllGroups(Set<String> groupNames)
Removes all groups from the directory. |
BatchResult<String> |
removeAllUsers(Set<String> usernames)
Removes all users from the directory. |
| Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes |
|---|
getKeys, getValue, getValues, isEmpty |
| Method Detail |
|---|
TimestampedUser findUserByName(String name)
throws UserNotFoundException
RemoteDirectoryuser that matches the supplied name.
findUserByName in interface RemoteDirectoryname - the name of the user (username).
TimestampedUser entity.
UserNotFoundException - a user with the supplied name does not exist.
TimestampedUser findUserByExternalId(String externalId)
throws UserNotFoundException
RemoteDirectoryexternalId.
This is an optional method that may not be implemented on all directory types.
Currently it is implemented for LDAP and Internal directories but not Crowd directories.
findUserByExternalId in interface RemoteDirectoryexternalId - the externalId of the user
TimestampedUser entity.
UserNotFoundException - a user with the supplied externalId does not exist.RemoteDirectory.findUserByName(String)
InternalDirectoryGroup findGroupByName(String name)
throws GroupNotFoundException
RemoteDirectorygroup that matches the supplied name.
findGroupByName in interface RemoteDirectoryname - the name of the group.
InternalDirectoryGroup entity.
GroupNotFoundException - a group with the supplied name does not exist.
Group addLocalGroup(GroupTemplate group)
throws InvalidGroupException,
OperationFailedException
group - template of the group to add.
InvalidGroupException - The supplied group is invalid.
OperationFailedException - underlying directory implementation failed to execute the operation.BatchResult<User> addAllUsers(Set<UserTemplateWithCredentialAndAttributes> users)
users - templates of users to add.
IllegalArgumentException - if any of the users' directory ID does not match the directory's ID.BatchResult<Group> addAllGroups(Set<GroupTemplate> groups)
groups - templates of groups to add.
IllegalArgumentException - if any of the groups' directory ID does not match the directory's ID.
BatchResult<String> addAllUsersToGroup(Set<String> userNames,
String groupName)
throws GroupNotFoundException
userNames - names of users to add to group.groupName - name of group to add users to.
GroupNotFoundException - group with supplied groupName does not exist.BatchResult<String> removeAllUsers(Set<String> usernames)
usernames - usernames of users to remove.
BatchResult<String> removeAllGroups(Set<String> groupNames)
groupNames - names of groups to remove.
boolean isLocalUserStatusEnabled()
true if user active status is updated independently in the Crowd cache and the remote
directory. Otherwise, user status is synchronised between the cache and the remote directory.
true if user status in the cache is updated independently of the remote directory.
User forceRenameUser(@Nonnull
User oldUser,
@Nonnull
String newName)
throws UserNotFoundException
RemoteDirectory.renameUser(String, String), except it will still do the rename even if there is an
existing user under the newName. In this case, it will first rename that existing user to a name that is known
not to exist in this directory.
oldUser - the existing user.newName - desired name of user.
UserNotFoundException - if the "oldUser" does not exist.RemoteDirectory.renameUser(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||