Modifier and Type | Method and Description |
---|---|
<T extends Permission> |
PermissionManager.addPermission(T permission)
Creates a new permission with specified attributes.
|
<T extends Permission> |
PermissionManager.getPermissionById(Object id)
Retrieve a Permission object with specified Id.
|
<T extends Permission> |
PermissionManager.getPermissionByName(String name)
Retrieve a Permission object with specified name.
|
<T extends Permission> |
PermissionManager.getPermissionInstance()
Construct a blank Permission object.
|
<T extends Permission> |
PermissionManager.getPermissionInstance(String permName)
Construct a blank Permission object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PermissionManager.checkExists(Permission permission)
Determines if the
Permission exists in the security system. |
void |
PermissionManager.removePermission(Permission permission)
Removes a Permission from the system.
|
void |
PermissionManager.renamePermission(Permission permission,
String name)
Renames an existing Permission.
|
Modifier and Type | Method and Description |
---|---|
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.hasPermission(Permission permission)
Checks if the user is assigned a specific Permission.
|
boolean |
DynamicAccessControlList.hasPermission(Permission permission)
Checks if the user is assigned a specific Permission in the global Group.
|
boolean |
DynamicAccessControlListImpl.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlList.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlListImpl.hasPermission(Permission permission,
GroupSet groupset)
Checks if the user is assigned a specific Permission in any of the given
Groups
|
boolean |
DynamicAccessControlList.hasPermission(Permission permission,
GroupSet groupset)
Checks if the user is assigned a specific Permission in any of the given
Groups
|
void |
DynamicModelManager.revoke(Role role,
Permission permission)
Removes a permission from a role
|
void |
DynamicModelManager.revokeAll(Permission permission)
Revoke from a permission all roles
This method is typically used when deleting a Permission
|
void |
AbstractDynamicModelManager.revokeAll(Permission permission)
Revokes all roles from a permission
This method is used when deleting a permission.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DynamicPermission
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 Permission> |
DynamicRole.getPermissionsAsSet()
Get the permission that are part of this role as Set
|
<T extends Permission> |
DynamicRole.setPermissionsAsSet(Set<T> permissions)
Set the permission that are part of this role as Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicRole.addPermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
DynamicRole.removePermission(Permission permission)
This method should only be used by a RoleManager.
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicPermissionImpl
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 Permission> |
DynamicRoleImpl.getPermissionsAsSet()
Get the permission that are part of this role as Set
|
<T extends Permission> |
DynamicRoleImpl.setPermissionsAsSet(Set<T> permissions)
Set the permission that are part of this role as Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicRoleImpl.addPermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
DynamicRoleImpl.removePermission(Permission permission)
This method should only be used by a RoleManager.
|
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
|
boolean |
TurbineAccessControlListImpl.hasPermission(Permission permission)
Checks if the user is assigned a specific Permission in the global Group.
|
boolean |
TurbineAccessControlList.hasPermission(Permission permission)
Checks if the user is assigned a specific Permission in the global Group.
|
boolean |
TurbineAccessControlListImpl.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlList.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlListImpl.hasPermission(Permission permission,
GroupSet groupset)
Checks if the user is assigned a specific Permission in any of the given
Groups
|
boolean |
TurbineAccessControlList.hasPermission(Permission permission,
GroupSet groupset)
Checks if the user is assigned a specific Permission in any of the given
Groups
|
void |
TurbineModelManager.revoke(Role role,
Permission permission)
Removes a permission from a role
|
Modifier and Type | Interface and Description |
---|---|
interface |
TurbinePermission
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 Permission> |
TurbineRole.getPermissionsAsSet()
Get the permission that are part of this role as Set
|
<T extends Permission> |
TurbineRole.setPermissionsAsSet(Set<T> permissions)
Set the permission that are part of this role as Set
|
Modifier and Type | Method and Description |
---|---|
Permission |
TurbineRolePermissionoff.getPermission() |
Modifier and Type | Method and Description |
---|---|
void |
TurbineRole.addPermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
TurbineRole.removePermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
TurbineRolePermissionoff.setPermission(Permission permission) |
Modifier and Type | Class and Description |
---|---|
class |
TurbinePermissionImpl
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 Permission> |
TurbineRoleImpl.getPermissionsAsSet()
Get the permission that are part of this role as Set
|
<T extends Permission> |
TurbineRoleImpl.setPermissionsAsSet(Set<T> permissions)
Set the permission that are part of this role as Set
|
Modifier and Type | Method and Description |
---|---|
void |
TurbineRoleImpl.addPermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
TurbineRoleImpl.removePermission(Permission permission)
This method should only be used by a RoleManager.
|
Modifier and Type | Method and Description |
---|---|
<T extends Permission> |
AbstractPermissionManager.addPermission(T permission)
Creates a new permission with specified attributes.
|
<T extends Permission> |
AbstractPermissionManager.getPermissionById(Object id)
Retrieve a Permission object with specified Id.
|
<T extends Permission> |
AbstractPermissionManager.getPermissionByName(String name)
Retrieve a Permission object with specified name.
|
<T extends Permission> |
AbstractPermissionManager.getPermissionInstance()
Construct a blank Permission object.
|
<T extends Permission> |
AbstractPermissionManager.getPermissionInstance(String permName)
Construct a blank Permission object.
|
protected abstract <T extends Permission> |
AbstractPermissionManager.persistNewPermission(T permission) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractPermissionManager.checkExists(Permission permission)
Check whether a specified permission exists.
|
Modifier and Type | Method and Description |
---|---|
Permission |
PermissionSet.getPermissionById(Object permissionId)
Deprecated.
Use getById()
|
Permission |
PermissionSet.getPermissionByName(String permissionName)
Deprecated.
use getByName()
|
Constructor and Description |
---|
PermissionSet(Collection<? extends Permission> permissions)
Constructs a new PermissionSet with specified contents.
|
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.