public abstract class AbstractGroupManager extends AbstractEntityManager implements GroupManager
manager
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, 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
checkExists, getAllGroups, removeGroup, renameGroup
protected abstract <T extends Group> T persistNewGroup(T group) throws DataBackendException
DataBackendException
public <T extends Group> T getGroupInstance() throws DataBackendException
getGroupInstance
in interface GroupManager
DataBackendException
- if the object could not be instantiated.public <T extends Group> T getGroupInstance(String groupName) throws DataBackendException
getGroupInstance
in interface GroupManager
groupName
- 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 GroupManager
name
- 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 GroupManager
name
- 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 GroupManager
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.public boolean checkExists(Group group) throws DataBackendException
checkExists
in interface GroupManager
role
- The group to be checked.DataBackendException
- if there was an error accessing the data backend.Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.