public abstract class AbstractGroupManager extends AbstractEntityManager implements GroupManager
ROLE| Constructor and Description |
|---|
AbstractGroupManager() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Group> |
addGroup(T group)
Creates a new group with specified attributes.
|
boolean |
checkExists(Group group)
Check whether a specified group exists.
|
<T extends Group> |
getGroupById(Object id)
Retrieve a Group object with specified Id.
|
<T extends Group> |
getGroupByName(String name)
Retrieve a Group object with specified name.
|
<T extends Group> |
getGroupInstance()
Construct a blank Group object.
|
<T extends Group> |
getGroupInstance(String groupName)
Construct a blank Group object.
|
protected abstract <T extends Group> |
persistNewGroup(T group) |
configure, getClassName, setClassNamedispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckExists, getAllGroups, removeGroup, renameGroupprotected abstract <T extends Group> T persistNewGroup(T group) throws DataBackendException
DataBackendExceptionpublic <T extends Group> T getGroupInstance() throws DataBackendException
getGroupInstance in interface GroupManagerDataBackendException - if the object could not be instantiated.public <T extends Group> T getGroupInstance(String groupName) throws DataBackendException
getGroupInstance in interface GroupManagergroupName - The name of the GroupDataBackendException - if the object could not be instantiated.public <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException
getGroupByName in interface GroupManagername - the name of the Group.DataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the group does not exist.public <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException
getGroupById in interface GroupManagername - the name of the Group.UnknownEntityException - if the permission does not exist in the database.DataBackendException - if there is a problem accessing the storage.public <T extends Group> T addGroup(T group) throws DataBackendException, EntityExistsException
addGroup in interface GroupManagergroup - the object describing the group to be created.DataBackendException - if there was an error accessing the data backend.EntityExistsException - if the group already exists.public boolean checkExists(Group group) throws DataBackendException
checkExists in interface GroupManagerrole - The group to be checked.DataBackendException - if there was an error accessing the data backend.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.