public class MemoryModelManagerImpl extends AbstractDynamicModelManager implements DynamicModelManager
managerROLE| 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, revokeAlldispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDelegate, removeDelegate, revokeAll, revokeAll, revokeAll, revokeAllpublic void grant(User user, Group group) throws DataBackendException, UnknownEntityException
grant in interface DynamicModelManageruser - 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 DynamicModelManageruser - 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 DynamicModelManagergroup - 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 DynamicModelManagergroup - 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 DynamicModelManagerrole - 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 DynamicModelManagerrole - 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.