Interface DynamicAccessControlList
- All Superinterfaces:
AccessControlList
,Serializable
- All Known Implementing Classes:
DynamicAccessControlListImpl
public interface DynamicAccessControlList extends Serializable, AccessControlList
This interface describes a control class that makes it easy to find out if a
particular User has a given Permission. It also determines if a User has a a
particular Role.
- Version:
- $Id: DynamicAccessControlList.java 1374616 2012-08-18 17:26:07Z tv $
- Author:
- Eric Pugh, Brett McLaughlin, Greg Ritter, Rafal Krzewski, Henning P. Schmiedehausen, Marco Knüttel
-
Method Summary
Modifier and Type Method Description PermissionSet
getPermissions()
Retrieves a set of Permissions an user is assignedPermissionSet
getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.RoleSet
getRoles()
Retrieves all roles for a userRoleSet
getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.boolean
hasPermission(String permission)
Checks if the user is assigned a specific Permission in the global Group.boolean
hasPermission(String permission, String group)
Checks if the user is assigned a specific Permission in the Group.boolean
hasPermission(String permission, Group group)
Checks if the user is assigned a specific Permission in the Group.boolean
hasPermission(String permissionName, GroupSet groupset)
Checks if the user is assigned a specifie Permission in any of the given Groupsboolean
hasPermission(Permission permission)
Checks if the user is assigned a specific Permission in the global Group.boolean
hasPermission(Permission permission, Group group)
Checks if the user is assigned a specific Permission in the Group.boolean
hasPermission(Permission permission, GroupSet groupset)
Checks if the user is assigned a specific Permission in any of the given Groupsboolean
hasRole(String role)
Checks if the user is assigned a specific Role.boolean
hasRole(String role, String group)
Checks if the user is assigned a specific Role in the Group.boolean
hasRole(String rolename, GroupSet groupset)
Checks if the user is assigned a specifie Role in any of the given Groupsboolean
hasRole(Role role)
Checks if the user is assigned a specific Role in the global Group.boolean
hasRole(Role role, Group group)
Checks if the user is assigned a specific Role in the Group.boolean
hasRole(Role role, GroupSet groupset)
Checks if the user is assigned a specific Role in any of the given Groups
-
Method Details
-
getRoles
Retrieves a set of Roles an user is assigned in a Group.- Parameters:
group
- the Group- Returns:
- the set of Roles this user has within the Group.
-
getRoles
RoleSet getRoles()Retrieves all roles for a user- Returns:
- the set of Roles this user has
-
getPermissions
Retrieves a set of Permissions an user is assigned in a Group.- Parameters:
group
- the Group- Returns:
- the set of Permissions this user has within the Group.
-
getPermissions
PermissionSet getPermissions()Retrieves a set of Permissions an user is assigned- Returns:
- the set of Permissions this user has.
-
hasRole
Checks if the user is assigned a specific Role in the Group.- Parameters:
role
- the Rolegroup
- the Group- Returns:
true
if the user is assigned the Role in the Group.
-
hasRole
Checks if the user is assigned a specific Role in any of the given Groups- Parameters:
role
- the Rolegroupset
- a Groupset- Returns:
true
if the user is assigned the Role in any of the given Groups.
-
hasRole
Checks if the user is assigned a specific Role in the Group.- Parameters:
role
- the Rolegroup
- the Group- Returns:
true
if the user is assigned the Role in the Group.
-
hasRole
Checks if the user is assigned a specifie Role in any of the given Groups- Parameters:
rolename
- the name of the Rolegroupset
- a Groupset- Returns:
true
if the user is assigned the Role in any of the given Groups.
-
hasRole
Checks if the user is assigned a specific Role in the global Group.- Parameters:
role
- the Role- Returns:
true
if the user is assigned the Role in the global Group.
-
hasRole
Checks if the user is assigned a specific Role.- Parameters:
role
- the Role- Returns:
true
if the user is assigned the Role.
-
hasPermission
Checks if the user is assigned a specific Permission in the Group.- Parameters:
permission
- the Permissiongroup
- the Group- Returns:
true
if the user is assigned the Permission in the Group.
-
hasPermission
Checks if the user is assigned a specific Permission in any of the given Groups- Parameters:
permission
- the Permissiongroupset
- a Groupset- Returns:
true
if the user is assigned the Permission in any of the given Groups.
-
hasPermission
Checks if the user is assigned a specific Permission in the Group.- Parameters:
permission
- the Permissiongroup
- the Group- Returns:
true
if the user is assigned the Permission in the Group.
-
hasPermission
Checks if the user is assigned a specific Permission in the Group.- Parameters:
permission
- the Permissiongroup
- the Group- Returns:
true
if the user is assigned the Permission in the Group.
-
hasPermission
Checks if the user is assigned a specifie Permission in any of the given Groups- Parameters:
permissionName
- the name of the Permissiongroupset
- a Groupset- Returns:
true
if the user is assigned the Permission in any of the given Groups.
-
hasPermission
Checks if the user is assigned a specific Permission in the global Group.- Parameters:
permission
- the Permission- Returns:
true
if the user is assigned the Permission in the global Group.
-
hasPermission
Checks if the user is assigned a specific Permission in the global Group.- Parameters:
permission
- the Permission- Returns:
true
if the user is assigned the Permission in the global Group.
-