public abstract class AbstractTurbineModelManager extends AbstractManager implements TurbineModelManager, org.apache.avalon.framework.configuration.Configurable
TurbineModelManager.Privilege
manager
GLOBAL_GROUP_ATTR_NAME, GLOBAL_GROUP_NAME
ROLE
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, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
configure
in interface org.apache.avalon.framework.configuration.Configurable
public Group getGlobalGroup() throws DataBackendException
getGlobalGroup
in interface TurbineModelManager
DataBackendException
public void revokeAll(Role role) throws DataBackendException, UnknownEntityException
revokeAll
in interface TurbineModelManager
role
- 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 TurbineModelManager
role
- 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 TurbineModelManager
user
- 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 TurbineModelManager
group
- the GroupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the Group is not present.public String getGlobalGroupName()
getGlobalGroupName
in interface TurbineModelManager
TurbineModelManager.GLOBAL_GROUP_ATTR_NAME
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.