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übersichtVon Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManagermanagerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.GroupManagerROLE
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleancheckExists(String groupName) Determines if theGroupexists 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.voidremoveGroup(Group group) Removes a Group from the system.voidrenameGroup(Group group, String name) Renames an existing Group.Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractGroupManageraddGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstanceVon 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, setupLoggerVon Klasse geerbte Methoden java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.fulcrum.security.GroupManageraddGroup, checkExists, getGroupById, getGroupByName, getGroupInstance, getGroupInstance
- 
Konstruktordetails- 
MemoryGroupManagerImplpublic MemoryGroupManagerImpl()
 
- 
- 
Methodendetails- 
getAllGroupsRetrieves all groups defined in the system.- Angegeben von:
- getAllGroupsin Schnittstelle- GroupManager
- 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.
 
- 
removeGroupRemoves a Group from the system.- Angegeben von:
- removeGroupin Schnittstelle- GroupManager
- 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.
 
- 
renameGrouppublic void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException Renames an existing Group.- Angegeben von:
- renameGroupin Schnittstelle- GroupManager
- 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.
 
- 
checkExistsDetermines if theGroupexists in the security system.- Angegeben von:
- checkExistsin Schnittstelle- GroupManager
- Parameter:
- groupName- a- Groupvalue
- 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.
 
- 
persistNewGroupCreates a new group with specified attributes.- Angegeben von:
- persistNewGroupin Klasse- AbstractGroupManager
- 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.
 
 
-