public abstract class AbstractTurbineModelManager extends AbstractManager implements TurbineModelManager, org.apache.avalon.framework.configuration.Configurable
TurbineModelManager.PrivilegemanagerGLOBAL_GROUP_ATTR_NAME, GLOBAL_GROUP_NAMEROLE| Constructor and Description |
|---|
AbstractTurbineModelManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method
|
Group |
getGlobalGroup()
Provides a reference to the Group object that represents the global group .
|
String |
getGlobalGroupName() |
void |
revokeAll(Group group)
Revokes all roles and users from a Group.
|
void |
revokeAll(Role role)
Revokes all permissions from a Role.
|
void |
revokeAll(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.
|
void |
revokeAll(User user)
Revokes all roles and groups from a User.
|
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic void configure(org.apache.avalon.framework.configuration.Configuration conf)
configure in interface org.apache.avalon.framework.configuration.Configurablepublic Group getGlobalGroup() throws DataBackendException
getGlobalGroup in interface TurbineModelManagerDataBackendException - generic exceptionpublic void revokeAll(Role role) throws DataBackendException, UnknownEntityException
revokeAll in interface TurbineModelManagerrole - the RoleDataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the Role is not present.public void revokeAll(Role role, boolean cascadeDelete) throws DataBackendException, UnknownEntityException
revokeAll in interface TurbineModelManagerrole - the RolecascadeDelete - if true removes all groups and user for this role.DataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the Role is not present.public void revokeAll(User user) throws DataBackendException, UnknownEntityException
revokeAll in interface TurbineModelManageruser - the UserDataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the Role is not present.public void revokeAll(Group group) throws DataBackendException, UnknownEntityException
revokeAll in interface TurbineModelManagergroup - the GroupDataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the Group is not present.public String getGlobalGroupName()
getGlobalGroupName in interface TurbineModelManagerTurbineModelManager.GLOBAL_GROUP_ATTR_NAMECopyright © 2011–2019 The Apache Software Foundation. All rights reserved.