public class MemoryGroupManagerImpl extends AbstractGroupManager implements GroupManager
ROLE
Constructor and Description |
---|
MemoryGroupManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkExists(String groupName)
Determines if the
Group exists in the security system. |
GroupSet |
getAllGroups()
Retrieves all groups defined in the system.
|
protected <T extends Group> |
persistNewGroup(T group)
Creates a new group with specified attributes.
|
void |
removeGroup(Group group)
Removes a Group from the system.
|
void |
renameGroup(Group group,
String name)
Renames an existing Group.
|
addGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstance
configure, getClassName, setClassName
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstance
public GroupSet getAllGroups() throws DataBackendException
getAllGroups
in interface GroupManager
DataBackendException
- if there was an error accessing the data backend.public void removeGroup(Group group) throws DataBackendException, UnknownEntityException
removeGroup
in interface GroupManager
group
- The object describing the group to be removed.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.public void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException
renameGroup
in interface GroupManager
group
- The object describing the group to be renamed.name
- the new name for the group.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.public boolean checkExists(String groupName) throws DataBackendException
Group
exists in the security system.checkExists
in interface GroupManager
group
- a Group
valueDataBackendException
- when more than one Group with the same name exists.Exception
- A generic exception.protected <T extends Group> T persistNewGroup(T group) throws DataBackendException
persistNewGroup
in class AbstractGroupManager
group
- the object describing the group to be created.DataBackendException
- if there was an error accessing the data backend.EntityExistsException
- if the group already exists.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.