Class TorqueBasicGroupManagerImpl
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
org.apache.fulcrum.security.torque.basic.TorqueBasicGroupManagerImpl
- All Implemented Interfaces:
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
This implementation persists to a database via Torque.
- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
-
Field Summary
Fields inherited from class org.apache.fulcrum.security.torque.TorqueAbstractGroupManager
lazyLoadingFields inherited from class org.apache.fulcrum.security.spi.AbstractManager
managerFields inherited from interface org.apache.fulcrum.security.GroupManager
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all specialized Groupsprotected <T extends Group>
TdoSelectById(Integer id, Connection con) Get a specialized Group by idprotected <T extends Group>
TdoSelectByName(String name, Connection con) Get a specialized Group by nameMethods inherited from class org.apache.fulcrum.security.torque.TorqueAbstractGroupManager
checkExists, configure, getAllGroups, getGroupById, getGroupByName, getLazyLoading, persistNewGroup, removeGroup, renameGroup, setLazyLoadingMethods inherited from class org.apache.fulcrum.security.spi.AbstractGroupManager
addGroup, checkExists, getGroupInstance, getGroupInstanceMethods inherited from class org.apache.fulcrum.security.spi.AbstractEntityManager
getClassName, setClassNameMethods inherited from class org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
TorqueBasicGroupManagerImpl
public TorqueBasicGroupManagerImpl()
-
-
Method Details
-
doSelectAllGroups
protected <T extends Group> List<T> doSelectAllGroups(Connection con) throws org.apache.torque.TorqueException Description copied from class:TorqueAbstractGroupManagerGet all specialized Groups- Specified by:
doSelectAllGroupsin classTorqueAbstractGroupManager- Parameters:
con- a database connection- Returns:
- a List of Group instances
- Throws:
org.apache.torque.TorqueException- if any database error occurs- See Also:
-
doSelectById
protected <T extends Group> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Description copied from class:TorqueAbstractGroupManagerGet a specialized Group by id- Specified by:
doSelectByIdin classTorqueAbstractGroupManager- Parameters:
id- the id of the groupcon- a database connection- Returns:
- a Group instance
- Throws:
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- See Also:
-
doSelectByName
protected <T extends Group> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Description copied from class:TorqueAbstractGroupManagerGet a specialized Group by name- Specified by:
doSelectByNamein classTorqueAbstractGroupManager- Parameters:
name- the name of the groupcon- a database connection- Returns:
- a Group instance
- Throws:
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- See Also:
-