Klasse MemoryGroupManagerImpl
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.AbstractGroupManager
org.apache.fulcrum.security.memory.MemoryGroupManagerImpl
- 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
,GroupManager
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.GroupManager
ROLE
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
checkExists
(String groupName) Determines if theGroup
exists in the security system.Retrieves all groups defined in the system.protected <T extends Group>
TpersistNewGroup
(T group) Creates a new group with specified attributes.void
removeGroup
(Group group) Removes a Group from the system.void
renameGroup
(Group group, String name) Renames an existing Group.Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractGroupManager
addGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstance
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
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.apache.fulcrum.security.GroupManager
addGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstance
-
Konstruktordetails
-
MemoryGroupManagerImpl
public MemoryGroupManagerImpl()
-
-
Methodendetails
-
getAllGroups
Retrieves all groups defined in the system.- Angegeben von:
getAllGroups
in SchnittstelleGroupManager
- Gibt zurück:
- the names of all groups defined in the system.
- Löst aus:
DataBackendException
- if there was an error accessing the data backend.
-
removeGroup
Removes a Group from the system.- Angegeben von:
removeGroup
in SchnittstelleGroupManager
- Parameter:
group
- The object describing the group to be removed.- Löst aus:
DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.
-
renameGroup
public void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException Renames an existing Group.- Angegeben von:
renameGroup
in SchnittstelleGroupManager
- Parameter:
group
- The object describing the group to be renamed.name
- the new name for the group.- Löst aus:
DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group does not exist.
-
checkExists
Determines if theGroup
exists in the security system.- Angegeben von:
checkExists
in SchnittstelleGroupManager
- Parameter:
groupName
- aGroup
value- Gibt zurück:
- true if the group exists in the system, false otherwise
- Löst aus:
DataBackendException
- when more than one Group with the same name exists.
-
persistNewGroup
Creates a new group with specified attributes.- Angegeben von:
persistNewGroup
in KlasseAbstractGroupManager
- Parameter:
group
- the object describing the group to be created.- Gibt zurück:
- a new Group object that has id set up properly.
- Löst aus:
DataBackendException
- if there was an error accessing the data backend.
-