Klasse MemoryRoleManagerImpl
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.memory.MemoryRoleManagerImpl
- 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
This implementation keeps all objects in memory. This is mostly meant to help
with testing and prototyping of ideas.
- Version:
- $Id$
- Autor:
- Eric Pugh
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManager
manager
Von Schnittstelle geerbte Felder org.apache.fulcrum.security.RoleManager
ROLE
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
checkExists
(String roleName) Determines if theRole
exists in the security system.Retrieves all roles defined in the system.protected <T extends Role>
TpersistNewRole
(T role) Creates a new role with specified attributes.void
removeRole
(Role role) Removes a Role from the system.void
renameRole
(Role role, String name) Renames an existing Role.Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractRoleManager
addRole, checkExists, getRoleById, getRoleByName, getRoleInstance, getRoleInstance
Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManager
configure, getClassName, setClassName
Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
MemoryRoleManagerImpl
public MemoryRoleManagerImpl()
-
-
Methodendetails
-
renameRole
Renames an existing Role.- 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.
-
checkExists
Determines if theRole
exists in the security system.- Parameter:
roleName
- aString
value- Gibt zurück:
- true if the role exists in the system, false otherwise
-
getAllRoles
Retrieves all roles defined in the system.- 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.
-
persistNewRole
Creates a new role with specified attributes.- Angegeben von:
persistNewRole
in KlasseAbstractRoleManager
- 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.
-
removeRole
Removes a Role from the system.- 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.
-