Klasse TorqueAbstractGroupManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.security.spi.AbstractManager
org.apache.fulcrum.security.spi.AbstractEntityManager
org.apache.fulcrum.security.spi.AbstractGroupManager
org.apache.fulcrum.security.torque.TorqueAbstractGroupManager
- Alle implementierten Schnittstellen:
Serializable,org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.service.Serviceable,org.apache.avalon.framework.thread.ThreadSafe,GroupManager,LazyLoadable
- Bekannte direkte Unterklassen:
PeerGroupManager,TorqueBasicGroupManagerImpl,TorqueDynamicGroupManagerImpl
public abstract class TorqueAbstractGroupManager
extends AbstractGroupManager
implements LazyLoadable
This implementation persists to a database via Torque.
- Version:
- $Id:$
- Autor:
- Thomas Vandahl
- Siehe auch:
-
Feldübersicht
FelderVon Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManager
managerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.GroupManager
ROLE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancheckExists(String groupName) Determines if theGroupexists in the security system.voidconfigure(org.apache.avalon.framework.configuration.Configuration conf) Avalon Service lifecycle methodGet all specialized Groupsprotected abstract <T extends Group>
TdoSelectById(Integer id, Connection con) Get a specialized Group by idprotected abstract <T extends Group>
TdoSelectByName(String name, Connection con) Get a specialized Group by nameRetrieves all groups defined in the system.<T extends Group>
TgetGroupById(Object id) Retrieve a Group object with specified id.<T extends Group>
TgetGroupByName(String name) Retrieve a Group object with specified name.protected <T extends Group>
TpersistNewGroup(T group) Creates a new group with specified attributes.voidremoveGroup(Group group) Removes a Group from the system.voidrenameGroup(Group group, String name) Renames an existing Group.voidsetLazyLoading(Boolean lazyLoading) Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractGroupManager
addGroup, checkExists, getGroupInstance, getGroupInstanceVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManager
getClassName, setClassNameVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceVon Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Felddetails
-
lazyLoading
-
-
Konstruktordetails
-
TorqueAbstractGroupManager
public TorqueAbstractGroupManager()
-
-
Methodendetails
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException Avalon Service lifecycle method- Angegeben von:
configurein Schnittstelleorg.apache.avalon.framework.configuration.Configurable- Setzt außer Kraft:
configurein KlasseAbstractEntityManager- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
-
doSelectAllGroups
protected abstract <T extends Group> List<T> doSelectAllGroups(Connection con) throws org.apache.torque.TorqueException Get all specialized Groups- Parameter:
con- a database connection- Gibt zurück:
- a List of Group instances
- Löst aus:
org.apache.torque.TorqueException- if any database error occurs
-
doSelectByName
protected abstract <T extends Group> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized Group by name- Parameter:
name- the name of the groupcon- a database connection- Gibt zurück:
- a Group instance
- Löst aus:
org.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 occurs
-
doSelectById
protected abstract <T extends Group> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized Group by id- Parameter:
id- the id of the groupcon- a database connection- Gibt zurück:
- a Group instance
- Löst aus:
org.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 occurs
-
persistNewGroup
Creates a new group with specified attributes.- Angegeben von:
persistNewGroupin KlasseAbstractGroupManager- Parameter:
group- the object describing the group to be created.- Gibt zurück:
- a new Group object that has id set up properly.
- Löst aus:
DataBackendException- if there was an error accessing the data backend.
-
renameGroup
public void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException Renames an existing Group.- Angegeben von:
renameGroupin SchnittstelleGroupManager- Parameter:
group- The object describing the group to be renamed.name- the new name for the group.- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the group does not exist.
-
removeGroup
Removes a Group from the system.- Angegeben von:
removeGroupin SchnittstelleGroupManager- Parameter:
group- The object describing the group to be removed.- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the group does not exist.
-
getGroupByName
public <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified name.- Angegeben von:
getGroupByNamein SchnittstelleGroupManager- Setzt außer Kraft:
getGroupByNamein KlasseAbstractGroupManager- Parameter:
name- the name of the Group.- Gibt zurück:
- an object representing the Group with specified name.
- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the group does not exist.
-
getAllGroups
Retrieves all groups defined in the system.- Angegeben von:
getAllGroupsin SchnittstelleGroupManager- Gibt zurück:
- the names of all groups defined in the system.
- Löst aus:
DataBackendException- if there was an error accessing the data backend.
-
checkExists
Determines if theGroupexists in the security system.- Angegeben von:
checkExistsin SchnittstelleGroupManager- Parameter:
groupName- aGroupvalue- Gibt zurück:
- true if the group name exists in the system, false otherwise
- Löst aus:
DataBackendException- when more than one Group with the same name exists.
-
getGroupById
public <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified id.- Angegeben von:
getGroupByIdin SchnittstelleGroupManager- Setzt außer Kraft:
getGroupByIdin KlasseAbstractGroupManager- Parameter:
id- the id of the Group.- Gibt zurück:
- an object representing the Group with specified id.
- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the group does not exist.
-
getLazyLoading
- Angegeben von:
getLazyLoadingin SchnittstelleLazyLoadable
-
setLazyLoading
- Angegeben von:
setLazyLoadingin SchnittstelleLazyLoadable
-