Package org.apache.fulcrum.security.spi
Klasse AbstractGroupManager
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
- 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 TypMethodeBeschreibung<T extends Group>
 TaddGroup(T group) Creates a new group with specified attributes.booleancheckExists(Group group) Check whether a specified group exists.<T extends Group>
 TgetGroupById(Object id) Retrieve a Group object with specified Id.<T extends Group>
 TgetGroupByName(String name) Retrieve a Group object with specified name.<T extends Group>
 TConstruct a blank Group object.<T extends Group>
 TgetGroupInstance(String groupName) Construct a blank Group object.protected abstract <T extends Group>
 TpersistNewGroup(T group) Von 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.GroupManagercheckExists, getAllGroups, removeGroup, renameGroup
- 
Konstruktordetails- 
AbstractGroupManagerpublic AbstractGroupManager()
 
- 
- 
Methodendetails- 
persistNewGroup- Löst aus:
- DataBackendException
 
- 
getGroupInstanceConstruct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor.- Angegeben von:
- getGroupInstancein Schnittstelle- GroupManager
- Typparameter:
- T- The group extending- Group
- Gibt zurück:
- an object implementing Group interface.
- Löst aus:
- DataBackendException- if the object could not be instantiated.
 
- 
getGroupInstanceConstruct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor.- Angegeben von:
- getGroupInstancein Schnittstelle- GroupManager
- Typparameter:
- T- The group of type- Group
- Parameter:
- groupName- The name of the Group
- Gibt zurück:
- an object implementing Group interface.
- Löst aus:
- DataBackendException- if the object could not be instantiated.
 
- 
getGroupByNamepublic <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified name.- Angegeben von:
- getGroupByNamein Schnittstelle- GroupManager
- Typparameter:
- T- The group of type- Group
- Parameter:
- name- the name of the Group.
- Gibt zurück:
- an object representing the Group with specified name.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the group does not exist.
 
- 
getGroupByIdpublic <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified Id.- Angegeben von:
- getGroupByIdin Schnittstelle- GroupManager
- Typparameter:
- T- Group type
- Parameter:
- id- the ID of the Group.
- Gibt zurück:
- an object representing the Group with specified name.
- Löst aus:
- UnknownEntityException- if the permission does not exist in the database.
- DataBackendException- if there is a problem accessing the storage.
 
- 
addGroupCreates a new group with specified attributes.- Angegeben von:
- addGroupin Schnittstelle- GroupManager
- Typparameter:
- T-
- 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.
- EntityExistsException- if the group already exists.
 
- 
checkExistsCheck whether a specified group exists. The name is used for looking up the group- Angegeben von:
- checkExistsin Schnittstelle- GroupManager
- Parameter:
- group- The group to be checked.
- Gibt zurück:
- true if the specified group exists
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
 
-