public interface TurbineAccessControlList extends Serializable, AccessControlList
Modifier and Type | Method and Description |
---|---|
Group[] |
getAllGroups()
Returns all groups defined in the system.
|
PermissionSet |
getPermissions()
Retrieves a set of Permissions an user is assigned in the global Group.
|
PermissionSet |
getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.
|
RoleSet |
getRoles()
Retrieves a set of Roles an user is assigned in the global Group.
|
RoleSet |
getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.
|
boolean |
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
Groups
|
boolean |
hasPermission(String permission)
Checks if the user is assigned a specific Permission in the global 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
Groups
|
boolean |
hasPermission(String permission,
String group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
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
|
boolean |
hasRole(String role)
Checks if the user is assigned a specific Role in the global Group.
|
boolean |
hasRole(String rolename,
GroupSet groupset)
Checks if the user is assigned a specifie Role in any of the given
Groups
|
boolean |
hasRole(String role,
String group)
Checks if the user is assigned a specific Role in the Group.
|
RoleSet getRoles(Group group)
group
- the GroupRoleSet getRoles()
PermissionSet getPermissions(Group group)
group
- the GroupPermissionSet getPermissions()
boolean hasRole(Role role, Group group)
role
- the Rolegroup
- the Grouptrue
if the user is assigned the Role in the Group.boolean hasRole(Role role, GroupSet groupset)
role
- the Rolegroupset
- a Groupsettrue
if the user is assigned the Role in any of
the given Groups.boolean hasRole(String role, String group)
role
- the Rolegroup
- the Grouptrue
if the user is assigned the Role in the Group.boolean hasRole(String rolename, GroupSet groupset)
rolename
- the name of the Rolegroupset
- a Groupsettrue
if the user is assigned the Role in any of
the given Groups.boolean hasRole(Role role)
role
- the Roletrue
if the user is assigned the Role in the global Group.boolean hasRole(String role)
role
- the Roletrue
if the user is assigned the Role in the global Group.boolean hasPermission(Permission permission, Group group)
permission
- the Permissiongroup
- the Grouptrue
if the user is assigned the Permission in the Group.boolean hasPermission(Permission permission, GroupSet groupset)
permission
- the Permissiongroupset
- a Groupsettrue
if the user is assigned the Permission in any
of the given Groups.boolean hasPermission(String permission, String group)
permission
- the Permissiongroup
- the Grouptrue
if the user is assigned the Permission in the Group.boolean hasPermission(String permission, Group group)
permission
- the Permissiongroup
- the Grouptrue
if the user is assigned the Permission in the Group.boolean hasPermission(String permissionName, GroupSet groupset)
permissionName
- the name of the Permissiongroupset
- a Groupsettrue
if the user is assigned the Permission in any
of the given Groups.boolean hasPermission(Permission permission)
permission
- the Permissiontrue
if the user is assigned the Permission in the global Group.boolean hasPermission(String permission)
permission
- the Permissiontrue
if the user is assigned the Permission in the global Group.Group[] getAllGroups()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.