public abstract class TorqueAbstractGroupManager extends AbstractGroupManager implements LazyLoadable
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
lazyLoading |
managerROLE| Constructor and Description |
|---|
TorqueAbstractGroupManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExists(String groupName)
Determines if the
Group exists in the security system. |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon Service lifecycle method
|
protected abstract <T extends Group> |
doSelectAllGroups(Connection con)
Get all specialized Groups
|
protected abstract <T extends Group> |
doSelectById(Integer id,
Connection con)
Get a specialized Group by id
|
protected abstract <T extends Group> |
doSelectByName(String name,
Connection con)
Get a specialized Group by name
|
GroupSet |
getAllGroups()
Retrieves all groups defined in the system.
|
<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.
|
Boolean |
getLazyLoading() |
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.
|
void |
setLazyLoading(Boolean lazyLoading) |
addGroup, checkExists, getGroupInstance, getGroupInstancegetClassName, setClassNamedispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceprotected Boolean lazyLoading
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class AbstractEntityManagerorg.apache.avalon.framework.configuration.ConfigurationExceptionprotected abstract <T extends Group> List<T> doSelectAllGroups(Connection con) throws org.apache.torque.TorqueException
con - a database connectionorg.apache.torque.TorqueException - if any database error occursprotected abstract <T extends Group> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
name - the name of the groupcon - a database connectionorg.apache.torque.NoRowsException - if no such group existsorg.apache.torque.TooManyRowsException - if multiple groups with the given name existorg.apache.torque.TorqueException - if any database error occurs if any other database error occursprotected abstract <T extends Group> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
id - the id of the groupcon - a database connectionorg.apache.torque.NoRowsException - if no such group existsorg.apache.torque.TooManyRowsException - if multiple groups with the given id existorg.apache.torque.TorqueException - if any database error occurs if any other database error occursprotected <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.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 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 <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException
getGroupByName in interface GroupManagergetGroupByName in class AbstractGroupManagername - 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
getAllGroups in interface GroupManagerDataBackendException - if there was an error accessing the
data backend.public boolean checkExists(String groupName) throws DataBackendException
Group exists in the security system.checkExists in interface GroupManagergroupName - a Group valueDataBackendException - when more than one Group with
the same name exists.public <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException
getGroupById in interface GroupManagergetGroupById in class AbstractGroupManagerid - the id of the Group.DataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the group does not exist.public Boolean getLazyLoading()
getLazyLoading in interface LazyLoadablepublic void setLazyLoading(Boolean lazyLoading)
setLazyLoading in interface LazyLoadableCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.