Class TorqueTurbineRoleManagerImpl
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.peer.managers.PeerRoleManager
org.apache.fulcrum.security.torque.turbine.TorqueTurbineRoleManagerImpl
- 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
,PeerManagable
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.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 -
Method Summary
Modifier and TypeMethodDescriptionGet 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 nameMethods inherited from class org.apache.fulcrum.security.torque.peer.managers.PeerRoleManager
configure, getColumnName, getCustomPeer, getPeerClassName, getPeerInstance, getPeerManager, setColumnName, setCustomPeer, setPeerClassName
Methods inherited from class org.apache.fulcrum.security.torque.TorqueAbstractRoleManager
checkExists, 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
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
TorqueTurbineRoleManagerImpl
public TorqueTurbineRoleManagerImpl()
-
-
Method Details
-
doSelectAllRoles
protected <T extends Role> List<T> doSelectAllRoles(Connection con) throws org.apache.torque.TorqueException Description copied from class:TorqueAbstractRoleManager
Get all specialized Roles- Specified by:
doSelectAllRoles
in classTorqueAbstractRoleManager
- Parameters:
con
- a database connection- Returns:
- a List of Role instances
- Throws:
org.apache.torque.TorqueException
- if any database error occurs- See Also:
-
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:TorqueAbstractRoleManager
Get a specialized Role by id- Specified by:
doSelectById
in 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- See Also:
-
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:TorqueAbstractRoleManager
Get a specialized Role by name- Specified by:
doSelectByName
in 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- See Also:
-