public class LocalGroupHandler extends InternalGroupHandler
DbCachingRemoteDirectory
with the shadow attribute set to "false" is an local group.SHADOW_ATTRIBUTE_KEY
Constructor and Description |
---|
LocalGroupHandler(InternalRemoteDirectory internalDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalGroupToLocalGroup(String childGroup,
String parentGroup) |
void |
addUserToLocalGroup(String username,
String groupName) |
Group |
createLocalGroup(GroupTemplate groupTemplate)
Creates a local group with the supplied template.
|
Group |
findLocalGroup(String groupName)
Finds a local group.
|
void |
removeLocalGroupFromLocalGroup(String childGroup,
String parentGroup) |
void |
removeUserFromLocalGroup(String username,
String groupName) |
Group |
updateLocalGroup(GroupTemplate groupTemplate)
Updates a local group.
|
getInternalDirectory, isLocalGroupsEnabled
public LocalGroupHandler(InternalRemoteDirectory internalDirectory)
public Group findLocalGroup(String groupName) throws GroupNotFoundException, OperationFailedException
groupName
- name of group.GroupNotFoundException
- local group with supplied name does not exist.OperationFailedException
- underlying directory implementation failed to execute the operation.public Group createLocalGroup(GroupTemplate groupTemplate) throws InvalidGroupException, OperationFailedException, DirectoryNotFoundException
groupTemplate
- group to add.InvalidGroupException
- group already exists, either as a local group or as a shadow, with the same name.OperationFailedException
- underlying directory implementation failed to execute the operation.DirectoryNotFoundException
public Group updateLocalGroup(GroupTemplate groupTemplate) throws OperationFailedException, GroupNotFoundException, ReadOnlyGroupException, InvalidGroupException
groupTemplate
- group to update.OperationFailedException
- underlying directory implementation failed to execute the operation.GroupNotFoundException
ReadOnlyGroupException
InvalidGroupException
public void addUserToLocalGroup(String username, String groupName) throws OperationFailedException, GroupNotFoundException, ReadOnlyGroupException, UserNotFoundException
public void addLocalGroupToLocalGroup(String childGroup, String parentGroup) throws OperationFailedException, InvalidMembershipException, GroupNotFoundException, ReadOnlyGroupException
public void removeUserFromLocalGroup(String username, String groupName) throws OperationFailedException, GroupNotFoundException, MembershipNotFoundException, ReadOnlyGroupException, UserNotFoundException
public void removeLocalGroupFromLocalGroup(String childGroup, String parentGroup) throws OperationFailedException, InvalidMembershipException, GroupNotFoundException, MembershipNotFoundException, ReadOnlyGroupException
Copyright © 2013 Atlassian. All Rights Reserved.