Modifier and Type | Method and Description |
---|---|
<T extends Role> |
RoleManager.addRole(T role)
Creates a new role with specified attributes.
|
<T extends Role> |
RoleManager.getRoleById(Object id)
Retrieve a Role object with specified Id.
|
<T extends Role> |
RoleManager.getRoleByName(String name)
Retrieve a Role object with specified name.
|
<T extends Role> |
RoleManager.getRoleInstance()
Construct a blank Role object.
|
<T extends Role> |
RoleManager.getRoleInstance(String roleName)
Construct a blank Role object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoleManager.checkExists(Role role)
Determines if the
Role exists in the security system. |
void |
RoleManager.removeRole(Role role)
Removes a Role from the system.
|
void |
RoleManager.renameRole(Role role,
String name)
Renames an existing Role.
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicModelManager.grant(Group group,
Role role)
Puts a role into a group
This method is used when adding a role to a group.
|
void |
DynamicModelManager.grant(Role role,
Permission permission)
Puts a permission in a role
This method is used when adding a permission to a role
|
boolean |
DynamicAccessControlListImpl.hasRole(Role role)
Checks if the user is assigned a specific Role
|
boolean |
DynamicAccessControlList.hasRole(Role role)
Checks if the user is assigned a specific Role in the global Group.
|
boolean |
DynamicAccessControlListImpl.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
DynamicAccessControlList.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
DynamicAccessControlListImpl.hasRole(Role role,
GroupSet groupset)
Checks if the user is assigned a specific Role in any of the given Groups
|
boolean |
DynamicAccessControlList.hasRole(Role role,
GroupSet groupset)
Checks if the user is assigned a specific Role in any of the given Groups
|
void |
DynamicModelManager.revoke(Group group,
Role role)
Remove a role from a group
This method is used when removeing a role to a group.
|
void |
DynamicModelManager.revoke(Role role,
Permission permission)
Removes a permission from a role
|
void |
DynamicModelManager.revokeAll(Role role)
Revokes all permissions from a Role.
|
void |
AbstractDynamicModelManager.revokeAll(Role role)
Revokes all permissions and groups from a Role.
|
Constructor and Description |
---|
DynamicAccessControlListImpl(Map<? extends Group,? extends RoleSet> roleSets,
Map<? extends Role,? extends PermissionSet> permissionSets)
Constructs a new AccessControlList.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DynamicRole
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Role> |
DynamicPermission.getRolesAsSet()
Get the roles that this permission belongs to as Set
|
<T extends Role> |
DynamicGroup.getRolesAsSet()
Get the roles that are part of this group as Set
|
<T extends Role> |
DynamicPermission.setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set
|
<T extends Role> |
DynamicGroup.setRolesAsSet(Set<T> roles)
Set the roles that are part of this group as Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicPermission.addRole(Role role)
Add a role to this permission
|
void |
DynamicGroup.addRole(Role role)
Add a role to this group
|
void |
DynamicPermission.removeRole(Role role)
Remove a role from this permission
|
void |
DynamicGroup.removeRole(Role role)
Remove a role from this group
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicRoleImpl
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Role> |
DynamicPermissionImpl.getRolesAsSet()
Get the roles that this permission belongs to as Set
|
<T extends Role> |
DynamicGroupImpl.getRolesAsSet()
Get the roles that are part of this group as Set
|
<T extends Role> |
DynamicPermissionImpl.setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set
|
<T extends Role> |
DynamicGroupImpl.setRolesAsSet(Set<T> roles)
Set the roles that are part of this group as Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicPermissionImpl.addRole(Role role)
Add a role to this permission
|
void |
DynamicGroupImpl.addRole(Role role)
Add a role to this group
|
void |
DynamicPermissionImpl.removeRole(Role role)
Remove a role from this permission
|
void |
DynamicGroupImpl.removeRole(Role role)
Remove a role from this group
|
Modifier and Type | Method and Description |
---|---|
void |
TurbineModelManager.grant(Role role,
Permission permission)
Puts a permission in a role
This method is used when adding a permission to a role
|
void |
TurbineModelManager.grant(User user,
Group group,
Role role)
Grant an User a Role in a Group.
|
boolean |
TurbineAccessControlListImpl.hasRole(Role role)
Checks if the user is assigned a specific Role in the global Group.
|
boolean |
TurbineAccessControlList.hasRole(Role role)
Checks if the user is assigned a specific Role in the global Group.
|
boolean |
TurbineAccessControlListImpl.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
TurbineAccessControlList.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
TurbineAccessControlListImpl.hasRole(Role role,
GroupSet groupset)
Checks if the user is assigned a specific Role in any of the given
Groups
|
boolean |
TurbineAccessControlList.hasRole(Role role,
GroupSet groupset)
Checks if the user is assigned a specific Role in any of the given
Groups
|
void |
TurbineModelManager.revoke(Role role,
Permission permission)
Removes a permission from a role
|
void |
TurbineModelManager.revoke(User user,
Group group,
Role role)
Revoke a Role in a Group from an User.
|
void |
TurbineModelManager.revokeAll(Role role)
Revokes all permissions from a Role.
|
void |
AbstractTurbineModelManager.revokeAll(Role role)
Revokes all permissions and groups from a Role.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TurbineRole
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Role> |
TurbinePermission.getRolesAsSet()
Get the roles that this permission belongs to as Set
|
<T extends Role> |
TurbinePermission.setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set
|
Modifier and Type | Method and Description |
---|---|
Role |
TurbineUserGroupRole.getRole()
Get the role
|
Role |
TurbineRolePermissionoff.getRole() |
Modifier and Type | Method and Description |
---|---|
void |
TurbinePermission.addRole(Role role)
Add a role to this permission
|
void |
TurbinePermission.removeRole(Role role)
Remove a role from this permission
|
void |
TurbineUserGroupRole.setRole(Role role)
Set the role
|
void |
TurbineRolePermissionoff.setRole(Role role) |
Modifier and Type | Class and Description |
---|---|
class |
TurbineRoleImpl
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Role> |
TurbinePermissionImpl.getRolesAsSet()
Get the roles that this permission belongs to as Set
|
<T extends Role> |
TurbinePermissionImpl.setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set
|
Modifier and Type | Method and Description |
---|---|
void |
TurbinePermissionImpl.addRole(Role role)
Add a role to this permission
|
void |
TurbinePermissionImpl.removeRole(Role role)
Remove a role from this permission
|
Modifier and Type | Method and Description |
---|---|
<T extends Role> |
AbstractRoleManager.addRole(T role)
Creates a new role with specified attributes.
|
<T extends Role> |
AbstractRoleManager.getRoleById(Object id)
Retrieve a Role object with specified Id.
|
<T extends Role> |
AbstractRoleManager.getRoleByName(String name)
Retrieve a Role object with specified name.
|
<T extends Role> |
AbstractRoleManager.getRoleInstance()
Construct a blank Role object.
|
<T extends Role> |
AbstractRoleManager.getRoleInstance(String roleName)
Construct a blank Role object.
|
protected abstract <T extends Role> |
AbstractRoleManager.persistNewRole(T role) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractRoleManager.checkExists(Role role)
Check whether a specified role exists.
|
Modifier and Type | Method and Description |
---|---|
Role |
RoleSet.getRoleById(Object roleId)
Deprecated.
Use getById()
|
Role |
RoleSet.getRoleByName(String roleName)
Deprecated.
use getByName()
|
Constructor and Description |
---|
RoleSet(Collection<? extends Role> roles)
Constructs a new RoleSet with specified contents.
|
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.