Klasse TorqueAbstractRoleManager
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
- Alle implementierten Schnittstellen:
- 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
- Bekannte direkte Unterklassen:
- PeerRoleManager,- TorqueDynamicRoleManagerImpl
This implementation persists to a database via Torque.
- Version:
- $Id:$
- Autor:
- Thomas Vandahl
- Siehe auch:
- 
FeldübersichtFelderVon Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManagermanagerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.RoleManagerROLE
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleancheckExists(String roleName) Determines if theRoleexists in the security system.voidconfigure(org.apache.avalon.framework.configuration.Configuration conf) Avalon Service lifecycle methodGet all specialized Rolesprotected abstract <T extends Role>
 TdoSelectById(Integer id, Connection con) Get a specialized Role by idprotected abstract <T extends Role>
 TdoSelectByName(String name, Connection con) Get a specialized Role by nameRetrieves all roles defined in the system.<T extends Role>
 TgetRoleById(Object id) Retrieve a Role object with specified id.<T extends Role>
 TgetRoleByName(String name) Retrieve a Role object with specified name.protected <T extends Role>
 TpersistNewRole(T role) Creates a new role with specified attributes.voidremoveRole(Role role) Removes a Role from the system.voidrenameRole(Role role, String name) Renames an existing Role.voidsetLazyLoading(Boolean lazyLoading) Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractRoleManageraddRole, checkExists, getRoleInstance, getRoleInstanceVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManagergetClassName, setClassNameVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractManagerdispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceVon Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLogger
- 
Felddetails- 
lazyLoading
 
- 
- 
Konstruktordetails- 
TorqueAbstractRoleManagerpublic TorqueAbstractRoleManager()
 
- 
- 
Methodendetails- 
configurepublic void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException Avalon Service lifecycle method- Angegeben von:
- configurein Schnittstelle- org.apache.avalon.framework.configuration.Configurable
- Setzt außer Kraft:
- configurein Klasse- AbstractEntityManager
- Löst aus:
- org.apache.avalon.framework.configuration.ConfigurationException
 
- 
doSelectAllRolesprotected abstract <T extends Role> List<T> doSelectAllRoles(Connection con) throws org.apache.torque.TorqueException Get all specialized Roles- Parameter:
- con- a database connection
- Gibt zurück:
- a List of Role instances
- Löst aus:
- org.apache.torque.TorqueException- if any database error occurs
 
- 
doSelectByNameprotected abstract <T extends Role> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized Role by name- Parameter:
- name- the name of the group
- con- a database connection
- Gibt zurück:
- a Role instance
- Löst aus:
- org.apache.torque.NoRowsException- if no such group exists
- org.apache.torque.TooManyRowsException- if multiple groups with the given name exist
- org.apache.torque.TorqueException- if any database error occurs if any other database error occurs
 
- 
doSelectByIdprotected abstract <T extends Role> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized Role by id- Parameter:
- id- the id of the group
- con- a database connection
- Gibt zurück:
- a Role instance
- Löst aus:
- org.apache.torque.NoRowsException- if no such group exists
- org.apache.torque.TooManyRowsException- if multiple groups with the given id exist
- org.apache.torque.TorqueException- if any database error occurs if any other database error occurs
 
- 
renameRoleRenames an existing Role.- Angegeben von:
- renameRolein Schnittstelle- RoleManager
- Parameter:
- role- The object describing the role to be renamed.
- name- the new name for the role.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role does not exist.
 
- 
persistNewRoleCreates a new role with specified attributes.- Angegeben von:
- persistNewRolein Klasse- AbstractRoleManager
- Parameter:
- role- the object describing the role to be created.
- Gibt zurück:
- a new Role object that has id set up properly.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
- 
removeRoleRemoves a Role from the system.- Angegeben von:
- removeRolein Schnittstelle- RoleManager
- Parameter:
- role- The object describing the role to be removed.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role does not exist.
 
- 
checkExistsDetermines if theRoleexists in the security system.- Angegeben von:
- checkExistsin Schnittstelle- RoleManager
- Parameter:
- roleName- a- Rolevalue
- Gibt zurück:
- true if the role name exists in the system, false otherwise
- Löst aus:
- DataBackendException- when more than one Role with the same name exists.
 
- 
getAllRolesRetrieves all roles defined in the system.- Angegeben von:
- getAllRolesin Schnittstelle- RoleManager
- Gibt zurück:
- the names of all roles defined in the system.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
- 
getRoleByIdpublic <T extends Role> T getRoleById(Object id) throws DataBackendException, UnknownEntityException Retrieve a Role object with specified id.- Angegeben von:
- getRoleByIdin Schnittstelle- RoleManager
- Setzt außer Kraft:
- getRoleByIdin Klasse- AbstractRoleManager
- Parameter:
- id- the id of the Role.
- Gibt zurück:
- an object representing the Role with specified id.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role does not exist.
 
- 
getRoleByNamepublic <T extends Role> T getRoleByName(String name) throws DataBackendException, UnknownEntityException Retrieve a Role object with specified name.- Angegeben von:
- getRoleByNamein Schnittstelle- RoleManager
- Setzt außer Kraft:
- getRoleByNamein Klasse- AbstractRoleManager
- Parameter:
- name- the name of the Role.
- Gibt zurück:
- an object representing the Role with specified name.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role does not exist.
 
- 
getLazyLoading- Angegeben von:
- getLazyLoadingin Schnittstelle- LazyLoadable
 
- 
setLazyLoading- Angegeben von:
- setLazyLoadingin Schnittstelle- LazyLoadable
 
 
-