Class TorqueDynamicGroupManagerImpl
- 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.dynamic.TorqueDynamicGroupManagerImpl
-
- 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 TorqueDynamicGroupManagerImpl 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 TorqueDynamicGroupManagerImpl()
-
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
-
-
-
-
Method Detail
-
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
-
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
-
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
-
-