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
managerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.RoleManager
ROLE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer 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.AbstractRoleManager
addRole, checkExists, getRoleById, getRoleByName, getRoleInstance, getRoleInstanceVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManager
configure, getClassName, setClassNameVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceVon 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 theRoleexists in the security system.- Parameter:
roleName- aStringvalue- 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:
persistNewRolein 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.
-