|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
nl.gx.webmanager.authorization.impl.RoleImpl
public class RoleImpl
Implementation of the Role interface. This implementation wraps the GroupObject siteworks objecttype.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl |
|---|
id |
| Constructor Summary | |
|---|---|
RoleImpl()
Default constructor for a Role implementation instance. |
|
RoleImpl(java.lang.String id)
Constructor for a Role implementation taking the id of the siteworks object it wraps as a parameter. |
|
| 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 class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl |
|---|
assignRelatedObject, delete, equals, getAssignment, getAssignmentObjects, getAssignments, getId, getUuid, removeRelatedObjects, setAssignment, setAssignments, setComponent, setId, setNode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.authorization.HtmlObjectWrapper |
|---|
getId, getUuid |
| Constructor Detail |
|---|
public RoleImpl()
public RoleImpl(java.lang.String id)
id - Id of a GroupObject siteworks object| Method Detail |
|---|
public boolean checkAccess(java.lang.String permissionValue)
Role
checkAccess in interface RolepermissionValue - Value that uniquely identifies the permission to check
public void setName(java.lang.String name)
Role
setName in interface Rolename - Name for the role.public java.lang.String getName()
Role
getName in interface Rolepublic PermissionGroup[] getPermissionGroups()
Role
getPermissionGroups in interface Rolepublic Role[] getSubRoles()
Role
getSubRoles in interface Rolepublic Role[] getSuperRoles()
Role
getSuperRoles in interface Rolepublic void setSuperRole(Role role)
Role
setSuperRole in interface Rolerole - Role to set as direct superrolepublic Role getSuperRole()
Role
getSuperRole in interface Rolepublic boolean isDeveloperRole()
Role
isDeveloperRole in interface Rolepublic void setAllWebInitiatives(boolean allwebs)
Role
setAllWebInitiatives in interface Roleallwebs - value of the web initiatives propertypublic boolean getAllWebInitiatives()
Role
getAllWebInitiatives in interface Rolepublic void setPermissionGroups(PermissionGroup[] groups)
Role
setPermissionGroups in interface Rolegroups - Array of PermissionGroup object instancespublic void setPermissions(Permission[] permissions)
Role
setPermissions in interface Rolepermissions - Array of Permission object instancespublic Permission[] getAllPermissions()
Role
getAllPermissions in interface Rolepublic Permission[] getPermissions()
Role
getPermissions in interface Rolepublic Permission[] getGroupPermissions()
Role
getGroupPermissions in interface Rolepublic Permission[] getInheritedPermissions()
Role
getInheritedPermissions in interface Rolepublic void setUsers(User[] users)
Role
setUsers in interface Roleusers - Array of User class instances.public User[] getUsers()
Role
getUsers in interface Rolepublic MenuItem[] getToolbarElements()
Role
getToolbarElements in interface Rolepublic MenuItem[] getToolbarElementIcons()
Role
getToolbarElementIcons in interface Rolepublic void setToolbarElementIcons(MenuItem[] toolbarElements)
Role
setToolbarElementIcons in interface RoletoolbarElements - Array of toolbar elementspublic void copyPermissionsFromGroup(java.lang.String permissionGroupId)
copyPermissionsFromGroup in interface Rolepublic java.lang.String[] getPageSectionLabels()
Role
getPageSectionLabels in interface Rolepublic boolean isValidSuperRole(Role superRoleCandidate)
Role
isValidSuperRole in interface RolesuperRoleCandidate - Role to check whether it may be a valid superrole for this
role
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||