public class MemoryModelManagerImpl extends AbstractDynamicModelManager implements DynamicModelManager
manager
ROLE
Constructor and Description |
---|
MemoryModelManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
grant(Group group,
Role role)
Grants a Role to a Group
|
void |
grant(Role role,
Permission permission)
Grants a Role a Permission
|
void |
grant(User user,
Group group)
Puts a user in a group.
|
void |
revoke(Group group,
Role role)
Revokes a Role from a Group.
|
void |
revoke(Role role,
Permission permission)
Revokes a Permission from a Role.
|
void |
revoke(User user,
Group group)
Revokes a user from a group
|
addDelegate, removeDelegate, revokeAll, revokeAll, revokeAll, revokeAll
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDelegate, removeDelegate, revokeAll, revokeAll, revokeAll, revokeAll
public void grant(User user, Group group) throws DataBackendException, UnknownEntityException
grant
in interface DynamicModelManager
user
- the User.group
- the GroupDataBackendException
- if there was an error accessing the data
backend.UnknownEntityException
- if the account is not present.public void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
revoke
in interface DynamicModelManager
user
- the User.group
- the GroupDataBackendException
- if there was an error accessing the data
backendUnknownEntityException
- if the user or group is not present.public void grant(Group group, Role role) throws DataBackendException, UnknownEntityException
grant
in interface DynamicModelManager
group
- the Group.role
- the Role.DataBackendException
- if there was an error accessing the data
backend.UnknownEntityException
- if group or role is not present.public void revoke(Group group, Role role) throws DataBackendException, UnknownEntityException
revoke
in interface DynamicModelManager
group
- the Group.role
- the Role.DataBackendException
- if there was an error accessing the data
backend.UnknownEntityException
- if group or role is not present.public void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException
grant
in interface DynamicModelManager
role
- the Role.permission
- the Permission.DataBackendException
- if there was an error accessing the data
backend.UnknownEntityException
- if role or permission is not present.public void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException
revoke
in interface DynamicModelManager
role
- the Role.permission
- the Permission.DataBackendException
- if there was an error accessing the data
backend.UnknownEntityException
- if role or permission is not present.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.