public class HibernateModelManagerImpl extends AbstractTurbineModelManager implements TurbineModelManager
GLOBAL_GROUP_NAME
ROLE
Constructor and Description |
---|
HibernateModelManagerImpl() |
Modifier and Type | Method and Description |
---|---|
PersistenceHelper |
getPersistenceHelper() |
void |
grant(Role role,
Permission permission)
Grants a Role a Permission
|
void |
grant(User user,
Group group,
Role role)
Grant an User a Role in a Group.
|
void |
revoke(Role role,
Permission permission)
Revokes a Permission from a Role.
|
void |
revoke(User user,
Group group,
Role role)
Revoke a Role in a Group from an User.
|
getGlobalGroup, 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, 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 PersistenceHelper getPersistenceHelper()
public void grant(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
grant
in interface TurbineModelManager
user
- the user.group
- the group.role
- the role.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if user account, group or role is not present.public void revoke(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
revoke
in interface TurbineModelManager
user
- the user.group
- the group.role
- the role.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if user account, group or role is not present.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.