public abstract class AbstractDynamicModelManager extends AbstractManager implements DynamicModelManager
manager
ROLE
Constructor and Description |
---|
AbstractDynamicModelManager() |
Modifier and Type | Method and Description |
---|---|
void |
addDelegate(User delegator,
User delegatee)
It is expected the real implementation will overide this and save either
side of the function.
|
void |
removeDelegate(User delegator,
User delegatee)
Implementors should overide this to save and call super if they want the
base class to do the work
|
void |
revokeAll(Group group)
Revokes all users and roles from a group
This method is used when deleting a group.
|
void |
revokeAll(Permission permission)
Revokes all roles from a permission
This method is used when deleting a permission.
|
void |
revokeAll(Role role)
Revokes all permissions and groups from a Role.
|
void |
revokeAll(User user)
Revokes all groups from a user
This method is used when deleting an account.
|
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public void revokeAll(Permission permission) throws DataBackendException, UnknownEntityException
revokeAll
in interface DynamicModelManager
permission
- the permission.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.public void revokeAll(Group group) throws DataBackendException, UnknownEntityException
revokeAll
in interface DynamicModelManager
group
- the Group.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.public void revokeAll(User user) throws DataBackendException, UnknownEntityException
revokeAll
in interface DynamicModelManager
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.public void revokeAll(Role role) throws DataBackendException, UnknownEntityException
revokeAll
in interface DynamicModelManager
role
- the RoleDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the Role is not present.public void addDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException
addDelegate
in interface DynamicModelManager
delegator
- Adelegatee
- BDataBackendException
UnknownEntityException
public void removeDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException
removeDelegate
in interface DynamicModelManager
delegatee
- BDataBackendException
UnknownEntityException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.