|
||||||||||
| 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.PermissionCategoryImpl
public class PermissionCategoryImpl
Implementation of the PermissionCategory interface. This implementation wraps the rbac_category siteworks objecttype. A permission category is a way to categorize permissions but in no way effects authorization logic.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl |
|---|
id |
| Constructor Summary | |
|---|---|
PermissionCategoryImpl()
Default constructor for a PermissionCategory implementation instance. |
|
PermissionCategoryImpl(java.lang.String id)
Constructor for a PermissionCategory implementation taking the id of the siteworks object it wraps as a parameter. |
|
PermissionCategoryImpl(java.lang.String id,
int webid)
Constructor for a permission category when it is used within a webinitiatif, this way it returns only licensed permissions for that webinitiatif. |
|
| Method Summary | |
|---|---|
void |
addPermission(Permission permission)
Adds a permission to the volatile permissions |
boolean |
equals(PermissionCategory permissionCategory)
Returns if the permission category provided equals this permission category. |
java.lang.String |
getLabelId()
Return the id of the label assosiated with this permission category. |
java.lang.String |
getName()
Return the language dependent description of the permission category. |
Permission[] |
getPermissions()
Returns an array of all permission class instances in the category. |
boolean |
getShowAsComponent()
Return if the permission category should also be visible in the components tab of the Web Initiative configuration panel |
java.lang.String |
getValue()
Returns a unique identifying value of the category. |
void |
setLabelId(java.lang.String labelid)
Sets the labelid of this category. |
void |
setShowAsComponent(boolean showAsComponent)
Set if the permission category should also be visible in the components tab of the Web Initiative configuration panel. |
void |
setValue(java.lang.String value)
Sets the value of the permission category. |
| 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 PermissionCategoryImpl()
public PermissionCategoryImpl(java.lang.String id)
id - Id of a rbac_category siteworks object
public PermissionCategoryImpl(java.lang.String id,
int webid)
id - Id of a rbac_category siteworks objectwebid - Id of a wm_webinitiatif siteworks object| Method Detail |
|---|
public Permission[] getPermissions()
PermissionCategory
getPermissions in interface PermissionCategorypublic void addPermission(Permission permission)
addPermission in interface PermissionCategorypermission - Permission to addpublic java.lang.String getValue()
PermissionCategory
getValue in interface PermissionCategorypublic void setValue(java.lang.String value)
value - Value identifier of the permission categorypublic java.lang.String getLabelId()
PermissionCategory
getLabelId in interface PermissionCategorypublic void setLabelId(java.lang.String labelid)
labelid - id of the label to setpublic boolean equals(PermissionCategory permissionCategory)
permissionCategory - Permission category to be compared
public java.lang.String getName()
PermissionCategory
getName in interface PermissionCategorypublic void setShowAsComponent(boolean showAsComponent)
showAsComponent - if true the category will be shown as component in the Web
Initiative configuration panelpublic boolean getShowAsComponent()
PermissionCategory
getShowAsComponent in interface PermissionCategory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||