|
||||||||||
| 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.
In particular, the 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(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. |
InternalDirectoryGroup |
findGroupByName(java.lang.String name)
Finds the group that matches the supplied name. |
TimestampedUser |
findUserByName(java.lang.String name)
Finds the user that matches the supplied name. |
void |
removeAllGroups(java.util.Set<java.lang.String> groupNames)
Removes all groups from the directory. |
void |
removeAllUsers(java.util.Set<java.lang.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(java.lang.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.
InternalDirectoryGroup findGroupByName(java.lang.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(java.util.Set<UserTemplateWithCredentialAndAttributes> users)
users - templates of users to add.
java.lang.IllegalArgumentException - if any of the users' directory ID does not match the directory's ID.BatchResult<Group> addAllGroups(java.util.Set<GroupTemplate> groups)
groups - templates of groups to add.
java.lang.IllegalArgumentException - if any of the groups' directory ID does not match the directory's ID.
BatchResult<java.lang.String> addAllUsersToGroup(java.util.Set<java.lang.String> userNames,
java.lang.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.void removeAllUsers(java.util.Set<java.lang.String> usernames)
usernames - usernames of users to remove.void removeAllGroups(java.util.Set<java.lang.String> groupNames)
groupNames - names of groups to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||