Klasse MemoryRoleManagerImpl

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
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

public class MemoryRoleManagerImpl extends AbstractRoleManager
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:
  • Konstruktordetails

    • MemoryRoleManagerImpl

      public MemoryRoleManagerImpl()
  • Methodendetails

    • renameRole

      public void renameRole(Role role, String name) throws DataBackendException, UnknownEntityException
      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

      public boolean checkExists(String roleName)
      Determines if the Role exists in the security system.
      Parameter:
      roleName - a String value
      Gibt zurück:
      true if the role exists in the system, false otherwise
    • getAllRoles

      public RoleSet getAllRoles() throws DataBackendException
      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

      protected <T extends Role> T persistNewRole(T role) throws DataBackendException
      Creates a new role with specified attributes.
      Angegeben von:
      persistNewRole in 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.
    • removeRole

      public void removeRole(Role role) throws DataBackendException, UnknownEntityException
      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.