public interface TurbineModelManager extends ModelManager
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_GROUP_ATTR_NAME
attribute where global group name could be set
|
static String |
GLOBAL_GROUP_NAME
The name of the global group, if no global group name is set in model manager
|
ROLE
Modifier and Type | Method and Description |
---|---|
Group |
getGlobalGroup()
Provides a reference to the Group object that represents the global group.
|
String |
getGlobalGroupName() |
void |
grant(Role role,
Permission permission)
Puts a permission in a role
This method is used when adding a permission to a role
|
void |
grant(User user,
Group group,
Role role)
Grant an User a Role in a Group.
|
void |
revoke(Role role,
Permission permission)
Removes a permission from a role
|
void |
revoke(User user,
Group group,
Role role)
Revoke a Role in a Group from an User.
|
void |
revokeAll(Role role)
Revokes all permissions from a Role.
|
void |
revokeAll(User user)
Revokes all roles from an User.
|
static final String GLOBAL_GROUP_ATTR_NAME
static final String GLOBAL_GROUP_NAME
Group getGlobalGroup() throws DataBackendException
DataBackendException
String getGlobalGroupName()
GLOBAL_GROUP_ATTR_NAME
void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException
role
- the Role.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user or group is not present.void revokeAll(User user) throws DataBackendException, UnknownEntityException
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revokeAll(Role role) throws DataBackendException, UnknownEntityException
role
- the RoleDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the Role is not present.void grant(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
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.void revoke(User user, Group group, Role role) throws DataBackendException, UnknownEntityException
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–2017 The Apache Software Foundation. All rights reserved.