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, getGroupInstanceconfigure, getClassName, setClassNamedispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstancepublic GroupSet getAllGroups() throws DataBackendException
getAllGroups in interface GroupManagerDataBackendException - if there was an error accessing the data backend.public void removeGroup(Group group) throws DataBackendException, UnknownEntityException
removeGroup in interface GroupManagergroup - 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 GroupManagergroup - 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 GroupManagergroup - 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 AbstractGroupManagergroup - 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.