public class MemoryModelManagerImpl extends AbstractDynamicModelManager implements DynamicModelManager
ROLE
Constructor and Description |
---|
MemoryModelManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
grant(Group group,
Role role)
Grants a Group a Role
|
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)
Removes a user in 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.DataBackendException
- 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.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- 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-2015 The Apache Software Foundation. All Rights Reserved.