public class MemoryTurbineModelManagerImpl extends AbstractTurbineModelManager implements TurbineModelManager
manager
GLOBAL_GROUP_ATTR_NAME, GLOBAL_GROUP_NAME
ROLE
Constructor and Description |
---|
MemoryTurbineModelManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
grant(Role role,
Permission permission)
Grants a Role a Permission
|
void |
grant(User user,
Group group,
Role role) |
void |
revoke(Role role,
Permission permission)
Revokes a Permission from a Role.
|
void |
revoke(User user,
Group group,
Role role) |
configure, getGlobalGroup, getGlobalGroupName, 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
getGlobalGroup, getGlobalGroupName, revokeAll, revokeAll
public void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException
grant
in interface TurbineModelManager
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 TurbineModelManager
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 grant(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
grant
in interface TurbineModelManager
DataBackendException
UnknownEntityException
public void revoke(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
revoke
in interface TurbineModelManager
DataBackendException
UnknownEntityException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.