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übersichtVon 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.Retrieves all roles defined in the system.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.Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractRoleManageraddRole, checkExists, getRoleById, getRoleByName, getRoleInstance, getRoleInstanceVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManagerconfigure, getClassName, 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
- 
Konstruktordetails- 
MemoryRoleManagerImplpublic MemoryRoleManagerImpl()
 
- 
- 
Methodendetails- 
renameRoleRenames 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.
 
- 
checkExistsDetermines if theRoleexists in the security system.- Parameter:
- roleName- a- Stringvalue
- Gibt zurück:
- true if the role exists in the system, false otherwise
 
- 
getAllRolesRetrieves 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.
 
- 
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.- 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.
 
 
-