Class AbstractTurbineModelManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.security.spi.AbstractManager
org.apache.fulcrum.security.model.turbine.AbstractTurbineModelManager
- All Implemented Interfaces:
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,TurbineModelManager,ModelManager
public abstract class AbstractTurbineModelManager extends AbstractManager implements TurbineModelManager, org.apache.avalon.framework.configuration.Configurable
Holds shared functionality between different implementations of
TurbineModelManager's.
- Version:
- $Id: AbstractDynamicModelManager.java,v 1.2 2004/07/07 18:18:09 epugh Exp $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.fulcrum.security.model.turbine.TurbineModelManager
TurbineModelManager.Privilege -
Field Summary
Fields inherited from interface org.apache.fulcrum.security.model.turbine.TurbineModelManager
GLOBAL_GROUP_ATTR_NAME, GLOBAL_GROUP_NAME -
Constructor Summary
Constructors Constructor Description AbstractTurbineModelManager() -
Method Summary
Modifier and Type Method Description voidconfigure(org.apache.avalon.framework.configuration.Configuration conf)Avalon component lifecycle methodGroupgetGlobalGroup()Provides a reference to the Group object that represents the global group .StringgetGlobalGroupName()voidrevokeAll(Group group)Revokes all roles and users from a Group.voidrevokeAll(Role role)Revokes all permissions from a Role.voidrevokeAll(Role role, boolean cascadeDelete)Revokes by default all permissions from a Role and if flag is set all groups and users for this role This method is used when deleting a Role.voidrevokeAll(User user)Revokes all roles and groups from a User.Methods inherited from class org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
AbstractTurbineModelManager
public AbstractTurbineModelManager()
-
-
Method Details
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf)Avalon component lifecycle method- Specified by:
configurein interfaceorg.apache.avalon.framework.configuration.Configurable
-
getGlobalGroup
Provides a reference to the Group object that represents the global group .- Specified by:
getGlobalGroupin interfaceTurbineModelManager- Returns:
- A Group object that represents the global group.
- Throws:
DataBackendException- generic exception
-
revokeAll
Revokes all permissions from a Role. This method is used when deleting a Role.- Specified by:
revokeAllin interfaceTurbineModelManager- Parameters:
role- the Role- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Role is not present.
-
revokeAll
public void revokeAll(Role role, boolean cascadeDelete) throws DataBackendException, UnknownEntityExceptionRevokes by default all permissions from a Role and if flag is set all groups and users for this role This method is used when deleting a Role.- Specified by:
revokeAllin interfaceTurbineModelManager- Parameters:
role- the RolecascadeDelete- iftrueremoves all groups and user for this role.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Role is not present.
-
revokeAll
Revokes all roles and groups from a User. This method is used when deleting a User.- Specified by:
revokeAllin interfaceTurbineModelManager- Parameters:
user- the User- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Role is not present.
-
revokeAll
Revokes all roles and users from a Group. This method is used when deleting a User.- Specified by:
revokeAllin interfaceTurbineModelManager- Parameters:
group- the Group- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Group is not present.
-
getGlobalGroupName
- Specified by:
getGlobalGroupNamein interfaceTurbineModelManager- Returns:
- the configured global group name, by default
TurbineModelManager.GLOBAL_GROUP_ATTR_NAME
-