Class TorqueDynamicRoleManagerImpl
- 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.AbstractRoleManager
-
- org.apache.fulcrum.security.torque.TorqueAbstractRoleManager
-
- org.apache.fulcrum.security.torque.dynamic.TorqueDynamicRoleManagerImpl
-
- 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,RoleManager,LazyLoadable
public class TorqueDynamicRoleManagerImpl extends TorqueAbstractRoleManager
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.TorqueAbstractRoleManager
lazyLoading
-
Fields inherited from class org.apache.fulcrum.security.spi.AbstractManager
manager
-
Fields inherited from interface org.apache.fulcrum.security.RoleManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description TorqueDynamicRoleManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Role>
List<T>doSelectAllRoles(Connection con)Get all specialized Rolesprotected <T extends Role>
TdoSelectById(Integer id, Connection con)Get a specialized Role by idprotected <T extends Role>
TdoSelectByName(String name, Connection con)Get a specialized Role by name-
Methods inherited from class org.apache.fulcrum.security.torque.TorqueAbstractRoleManager
checkExists, configure, getAllRoles, getLazyLoading, getRoleById, getRoleByName, persistNewRole, removeRole, renameRole, setLazyLoading
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractRoleManager
addRole, checkExists, getRoleInstance, getRoleInstance
-
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
-
doSelectAllRoles
protected <T extends Role> List<T> doSelectAllRoles(Connection con) throws org.apache.torque.TorqueException
Description copied from class:TorqueAbstractRoleManagerGet all specialized Roles- Specified by:
doSelectAllRolesin classTorqueAbstractRoleManager- Parameters:
con- a database connection- Returns:
- a List of Role instances
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
doSelectById
protected <T extends Role> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
Description copied from class:TorqueAbstractRoleManagerGet a specialized Role by id- Specified by:
doSelectByIdin classTorqueAbstractRoleManager- Parameters:
id- the id of the groupcon- a database connection- Returns:
- a Role 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 Role> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
Description copied from class:TorqueAbstractRoleManagerGet a specialized Role by name- Specified by:
doSelectByNamein classTorqueAbstractRoleManager- Parameters:
name- the name of the groupcon- a database connection- Returns:
- a Role 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
-
-