public class HibernateGroupManagerImpl extends AbstractGroupManager
ROLE
Constructor and Description |
---|
HibernateGroupManagerImpl() |
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.
|
Group |
getGroupById(Object id)
Retrieve a Group object with specified id.
|
Group |
getGroupByName(String name)
Retrieve a Group object with specified name.
|
PersistenceHelper |
getPersistenceHelper() |
protected Group |
persistNewGroup(Group 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, getGroupInstance, getGroupInstance
configure, getClassName, setClassName
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
public Group getGroupByName(String name) throws DataBackendException, UnknownEntityException
getGroupByName
in interface GroupManager
getGroupByName
in class AbstractGroupManager
name
- the name of the Group.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.public GroupSet getAllGroups() throws DataBackendException
DataBackendException
- if there was an error accessing the data backend.public void removeGroup(Group group) throws DataBackendException, UnknownEntityException
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
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.groupName
- a Group
valueDataBackendException
- when more than one Group with the same name exists.protected Group persistNewGroup(Group 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.public PersistenceHelper getPersistenceHelper()
public Group getGroupById(Object id) throws DataBackendException, UnknownEntityException
getGroupById
in interface GroupManager
getGroupById
in class AbstractGroupManager
id
- the id of the Group.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.