public interface DynamicModelManager extends ModelManager
ROLE
Modifier and Type | Method and Description |
---|---|
void |
addDelegate(User delegator,
User delegatee)
Allow B to assumes A's roles, groups and permissions
|
void |
grant(Group group,
Role role)
Puts a role into a group
This method is used when adding a role to a group.
|
void |
grant(Role role,
Permission permission)
Puts a permission in a role
This method is used when adding a permission to a role
|
void |
grant(User user,
Group group)
Puts a user in a group.
|
void |
removeDelegate(User delegator,
User delegatee)
Stop A having B's roles, groups and permissions
|
void |
revoke(Group group,
Role role)
Remove a role from a group
This method is used when removeing a role to a group.
|
void |
revoke(Role role,
Permission permission)
Removes a permission from a role
|
void |
revoke(User user,
Group group)
Removes a user from a group
|
void |
revokeAll(Group group)
Revokes all roles and users from a Group
This method is typically used when deleting a Group.
|
void |
revokeAll(Permission permission)
Revoke from a permission all roles
This method is typically used when deleting a Permission
|
void |
revokeAll(Role role)
Revokes all permissions from a Role.
|
void |
revokeAll(User user)
Revokes all roles from an User.
|
void grant(Group group, Role role) throws DataBackendException, UnknownEntityException
group
- the group to userole
- the role that will join the groupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group or role is not present.void revoke(Group group, Role role) throws DataBackendException, UnknownEntityException
group
- the group to userole
- the role that will join the groupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the group or role is not present.void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException
role
- the Role.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user or group is not present.void grant(User user, Group group) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user or group is not present.void revokeAll(User user) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revokeAll(Permission permission) throws DataBackendException, UnknownEntityException
permission
- the Permission.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the permission is not present.void revokeAll(Role role) throws DataBackendException, UnknownEntityException
role
- the RoleDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the Role is not present.void revokeAll(Group group) throws DataBackendException, UnknownEntityException
group
- the GroupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the Group is not present.void addDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException
delegator
- Adelegatee
- BDataBackendException
UnknownEntityException
void removeDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException
delegate
- Adelegatee
- BDataBackendException
UnknownEntityException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.