Class TorqueDynamicPermissionManagerImpl
- 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.AbstractPermissionManager
-
- org.apache.fulcrum.security.torque.TorqueAbstractPermissionManager
-
- org.apache.fulcrum.security.torque.dynamic.TorqueDynamicPermissionManagerImpl
-
- 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,PermissionManager
public class TorqueDynamicPermissionManagerImpl extends TorqueAbstractPermissionManager
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.spi.AbstractManager
manager
-
Fields inherited from interface org.apache.fulcrum.security.PermissionManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description TorqueDynamicPermissionManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Permission>
List<T>doSelectAllPermissions(Connection con)Get all specialized Permissionsprotected <T extends Permission>
TdoSelectById(Integer id, Connection con)Get a specialized Permission by idprotected <T extends Permission>
TdoSelectByName(String name, Connection con)Get a specialized Permission by name-
Methods inherited from class org.apache.fulcrum.security.torque.TorqueAbstractPermissionManager
checkExists, configure, getAllPermissions, getPermissionById, getPermissionByName, persistNewPermission, removePermission, renamePermission
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractPermissionManager
addPermission, checkExists, getPermissionInstance, getPermissionInstance
-
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
-
doSelectAllPermissions
protected <T extends Permission> List<T> doSelectAllPermissions(Connection con) throws org.apache.torque.TorqueException
Description copied from class:TorqueAbstractPermissionManagerGet all specialized Permissions- Specified by:
doSelectAllPermissionsin classTorqueAbstractPermissionManager- Parameters:
con- a database connection- Returns:
- a List of Permission instances
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
doSelectById
protected <T extends Permission> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
Description copied from class:TorqueAbstractPermissionManagerGet a specialized Permission by id- Specified by:
doSelectByIdin classTorqueAbstractPermissionManager- Parameters:
id- the id of the groupcon- a database connection- Returns:
- a Permission 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 Permission> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
Description copied from class:TorqueAbstractPermissionManagerGet a specialized Permission by name- Specified by:
doSelectByNamein classTorqueAbstractPermissionManager- Parameters:
name- the name of the groupcon- a database connection- Returns:
- a Permission 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
-
-