|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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.
| Field Summary | |
|---|---|
static java.lang.String |
SESSION_KEY
The default Session key for the Access Control List |
| Method Summary | |
|---|---|
Group[] |
getAllGroups()
Returns all groups definded 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(java.lang.String permission)
Checks if the user is assigned a specific Permission in the global Group. |
boolean |
hasPermission(java.lang.String permission,
Group group)
Checks if the user is assigned a specific Permission in the Group. |
boolean |
hasPermission(java.lang.String permissionName,
GroupSet groupset)
Checks if the user is assigned a specifie Permission in any of the given Groups |
boolean |
hasPermission(java.lang.String permission,
java.lang.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(java.lang.String role)
Checks if the user is assigned a specific Role in the global Group. |
boolean |
hasRole(java.lang.String rolename,
GroupSet groupset)
Checks if the user is assigned a specifie Role in any of the given Groups |
boolean |
hasRole(java.lang.String role,
java.lang.String group)
Checks if the user is assigned a specific Role in the Group. |
| Field Detail |
|---|
static final java.lang.String SESSION_KEY
| Method Detail |
|---|
RoleSet getRoles(Group group)
group - the Group
RoleSet getRoles()
PermissionSet getPermissions(Group group)
group - the Group
PermissionSet getPermissions()
boolean hasRole(Role role,
Group group)
role - the Rolegroup - the Group
true if the user is assigned the Role in the Group.
boolean hasRole(Role role,
GroupSet groupset)
role - the Rolegroupset - a Groupset
true if the user is assigned the Role in any of
the given Groups.
boolean hasRole(java.lang.String role,
java.lang.String group)
role - the Rolegroup - the Group
true if the user is assigned the Role in the Group.
boolean hasRole(java.lang.String rolename,
GroupSet groupset)
rolename - the name of the Rolegroupset - a Groupset
true if the user is assigned the Role in any of
the given Groups.boolean hasRole(Role role)
role - the Role
true if the user is assigned the Role in the global Group.boolean hasRole(java.lang.String role)
role - the Role
true if the user is assigned the Role in the global Group.
boolean hasPermission(Permission permission,
Group group)
permission - the Permissiongroup - the Group
true if the user is assigned the Permission in the Group.
boolean hasPermission(Permission permission,
GroupSet groupset)
permission - the Permissiongroupset - a Groupset
true if the user is assigned the Permission in any
of the given Groups.
boolean hasPermission(java.lang.String permission,
java.lang.String group)
permission - the Permissiongroup - the Group
true if the user is assigned the Permission in the Group.
boolean hasPermission(java.lang.String permission,
Group group)
permission - the Permissiongroup - the Group
true if the user is assigned the Permission in the Group.
boolean hasPermission(java.lang.String permissionName,
GroupSet groupset)
permissionName - the name of the Permissiongroupset - a Groupset
true if the user is assigned the Permission in any
of the given Groups.boolean hasPermission(Permission permission)
permission - the Permission
true if the user is assigned the Permission in the global Group.boolean hasPermission(java.lang.String permission)
permission - the Permission
true if the user is assigned the Permission in the global Group.Group[] getAllGroups()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||