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übersicht
Von Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManager
managerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.GroupManager
ROLE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer 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.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, setupLoggerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.fulcrum.security.GroupManager
checkExists, getAllGroups, removeGroup, renameGroup
-
Konstruktordetails
-
AbstractGroupManager
public AbstractGroupManager()
-
-
Methodendetails
-
persistNewGroup
- Löst aus:
DataBackendException
-
getGroupInstance
Construct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor.- Angegeben von:
getGroupInstancein SchnittstelleGroupManager- Typparameter:
T- The group extendingGroup- Gibt zurück:
- an object implementing Group interface.
- Löst aus:
DataBackendException- if the object could not be instantiated.
-
getGroupInstance
Construct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor.- Angegeben von:
getGroupInstancein SchnittstelleGroupManager- Typparameter:
T- The group of typeGroup- 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.
-
getGroupByName
public <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified name.- Angegeben von:
getGroupByNamein SchnittstelleGroupManager- Typparameter:
T- The group of typeGroup- 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.
-
getGroupById
public <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException Retrieve a Group object with specified Id.- Angegeben von:
getGroupByIdin SchnittstelleGroupManager- 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.
-
addGroup
Creates a new group with specified attributes.- Angegeben von:
addGroupin SchnittstelleGroupManager- 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.
-
checkExists
Check whether a specified group exists. The name is used for looking up the group- Angegeben von:
checkExistsin SchnittstelleGroupManager- 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.
-