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
public class TorqueBasicGroupManagerImpl extends TorqueAbstractGroupManager
This implementation persists to a database via Torque.- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.fulcrum.security.torque.TorqueAbstractGroupManager
lazyLoading
-
Fields inherited from class org.apache.fulcrum.security.spi.AbstractManager
manager
-
Fields inherited from interface org.apache.fulcrum.security.GroupManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description TorqueBasicGroupManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Group>
List<T>doSelectAllGroups(Connection con)
Get 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 name-
Methods inherited from class org.apache.fulcrum.security.torque.TorqueAbstractGroupManager
checkExists, configure, getAllGroups, getGroupById, getGroupByName, getLazyLoading, persistNewGroup, removeGroup, renameGroup, setLazyLoading
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractGroupManager
addGroup, checkExists, getGroupInstance, getGroupInstance
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractEntityManager
getClassName, setClassName
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
-
-
-
-
Constructor Detail
-
TorqueBasicGroupManagerImpl
public TorqueBasicGroupManagerImpl()
-
-
Method Detail
-
doSelectAllGroups
protected <T extends Group> List<T> doSelectAllGroups(Connection con) throws org.apache.torque.TorqueException
Description copied from class:TorqueAbstractGroupManager
Get all specialized Groups- Specified by:
doSelectAllGroups
in classTorqueAbstractGroupManager
- Parameters:
con
- a database connection- Returns:
- a List of Group instances
- Throws:
org.apache.torque.TorqueException
- if any database error occurs- See Also:
TorqueAbstractGroupManager.doSelectAllGroups(java.sql.Connection)
-
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:TorqueAbstractGroupManager
Get a specialized Group by id- Specified by:
doSelectById
in 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:
TorqueAbstractGroupManager.doSelectById(java.lang.Integer, java.sql.Connection)
-
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:TorqueAbstractGroupManager
Get a specialized Group by name- Specified by:
doSelectByName
in 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:
TorqueAbstractGroupManager.doSelectByName(java.lang.String, java.sql.Connection)
-
-