|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Role
A subset of user characteristics as defined by the context of an organization.
| Method Summary | |
|---|---|
boolean |
checkAccess(java.lang.String permissionValue)
Returns true if this role has access to given permission. |
void |
copyPermissionsFromGroup(java.lang.String permissionGroupId)
|
Permission[] |
getAllPermissions()
Returns all permissions assigned to this role, directly by a permission group or by inheritence of roles. |
boolean |
getAllWebInitiatives()
Return if this role is available on all web initiatives |
Permission[] |
getGroupPermissions()
This method returns all permissions that are assigned indirectly by assiging permission groups to the role. |
Permission[] |
getInheritedPermissions()
This method returns all permissions that were inherited from from a superrole. |
java.lang.String |
getName()
Returns the name of the role. |
java.lang.String[] |
getPageSectionLabels()
Return all page section labels assigned to this role |
PermissionGroup[] |
getPermissionGroups()
Returns all PermissionGroup object instances assigned to the role. |
Permission[] |
getPermissions()
This method returns only the permissions that are assigned to this role explicitely. |
Role[] |
getSubRoles()
Returns all Role object instances that are a subrole of this role. |
Role |
getSuperRole()
Returns the direct superrole of this role. |
Role[] |
getSuperRoles()
Returns recursively all Role object instances that are a superrole of this role. |
MenuItem[] |
getToolbarElementIcons()
Returns all toolbar elements that are shown as icons in the toolbar for a role, including the toolbar elemens for super roles. |
MenuItem[] |
getToolbarElements()
Returns all toolbar elements for a role, including the toolbar elements for super roles. |
User[] |
getUsers()
Returns an array of users that are in this role. |
boolean |
isDeveloperRole()
A role is considered to be a developer role if at least one permission group is assigned to the role with 'development=true'. |
boolean |
isValidSuperRole(Role superRoleCandidate)
Return true if the superRoleCandidate a valid super role for this role. |
void |
setAllWebInitiatives(boolean allwebs)
Sets the all web initiatives property to the given value |
void |
setName(java.lang.String name)
Set the name of the role. |
void |
setPermissionGroups(PermissionGroup[] groups)
Set the permission groups of a role. |
void |
setPermissions(Permission[] permissions)
Set the permissions of a role. |
void |
setSuperRole(Role role)
Set the direct superrole of this role. |
void |
setToolbarElementIcons(MenuItem[] toolbarElements)
Sets the toolbar elements that are shown as icons in the toolbar for a role. |
void |
setUsers(User[] users)
Set the users that are in this role. |
| Methods inherited from interface nl.gx.webmanager.authorization.HtmlObjectWrapper |
|---|
getId, getUuid |
| Method Detail |
|---|
boolean checkAccess(java.lang.String permissionValue)
permissionValue - Value that uniquely identifies the permission to check
java.lang.String getName()
void setName(java.lang.String name)
name - Name for the role.PermissionGroup[] getPermissionGroups()
Permission[] getAllPermissions()
Permission[] getPermissions()
Permission[] getGroupPermissions()
Permission[] getInheritedPermissions()
Role[] getSubRoles()
Role getSuperRole()
void setSuperRole(Role role)
role - Role to set as direct superroleRole[] getSuperRoles()
void setPermissionGroups(PermissionGroup[] groups)
groups - Array of PermissionGroup object instancesvoid setPermissions(Permission[] permissions)
permissions - Array of Permission object instancesUser[] getUsers()
void setUsers(User[] users)
users - Array of User class instances.MenuItem[] getToolbarElements()
MenuItem[] getToolbarElementIcons()
void setToolbarElementIcons(MenuItem[] toolbarElements)
toolbarElements - Array of toolbar elementsjava.lang.String[] getPageSectionLabels()
void copyPermissionsFromGroup(java.lang.String permissionGroupId)
boolean isValidSuperRole(Role superRoleCandidate)
superRoleCandidate - Role to check whether it may be a valid superrole for this
role
boolean isDeveloperRole()
void setAllWebInitiatives(boolean allwebs)
allwebs - value of the web initiatives propertyboolean getAllWebInitiatives()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||