nl.gx.webmanager.authorization.impl
Class PermissionImpl

java.lang.Object
  extended by nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
      extended by nl.gx.webmanager.authorization.impl.PermissionImpl
All Implemented Interfaces:
HtmlObjectWrapper, Permission

public class PermissionImpl
extends HtmlObjectWrapperImpl
implements Permission

Implementation of the Permission interface. This implementation can wrap the rbac_permission siteworks objecttype, but not necessarily does so.

Author:
Arjan Seijkens/Ivo Ladage

Field Summary
 
Fields inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
id
 
Fields inherited from interface nl.gx.webmanager.authorization.Permission
COPY_PERMISSION, CREATE_LINK_PERMISSION, CREATE_MEDIAITEM_PERMISSION, CREATE_PAGE_PAGEMODEL_PERMISSION, CREATE_PAGE_PERMISSION, CREATE_PAGE_SECTION_PERMISSION, CREATE_PAGEVERSION_PERMISSION, DELETE_MEDIAITEM_PERMISSION, DELETE_PAGE_PERMISSION, DELETE_PAGESECTION_PERMISSION, MOVE_PAGE_PERMISSION, UM_CREATE_GROUP_PERMISSION, UM_CREATE_USER_PERMISSION, UM_CREATE_WORD_PERMISSION, UM_DELETE_GROUP_PERMISSION, UM_DELETE_USER_PERMISSION, UM_DELETE_WORD_PERMISSION, UM_READ_GROUP_PERMISSION, UM_READ_USER_PERMISSION, UM_READ_WORD_PERMISSION, UM_UPDATE_GROUP_PERMISSION, UM_UPDATE_USER_PERMISSION, UPDATE_MEDIAITEM_PERMISSION, UPDATE_PAGE_MODELS, UPDATE_PAGE_PERMISSION, UPDATE_PAGE_SECTION_PERMISSION
 
Constructor Summary
PermissionImpl()
          Default constructor for a Permission implementation instance.
PermissionImpl(java.lang.String value, java.lang.String labelid, PermissionCategory permissionCategory)
          Constructor used in component definitions to create the permissions which are used in a component.
 
Method Summary
 boolean checkAccess(java.lang.String permissionValue)
          Returns true if this permission is identified by the given value.
 boolean equals(java.lang.Object obj)
           
 PermissionCategory getCategory()
          Return the permission category of this permission.
 java.lang.String getLabelId()
          Return the id of the label assosiated with this permission.
 java.lang.String getName()
          Return the language dependend name of this permission group.
 java.lang.String getValue()
          Returns the unique, externally defined, value of the permission.
 
Methods inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
assignRelatedObject, delete, 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

PermissionImpl

public PermissionImpl()
Default constructor for a Permission implementation instance.


PermissionImpl

public PermissionImpl(java.lang.String value,
                      java.lang.String labelid,
                      PermissionCategory permissionCategory)
Constructor used in component definitions to create the permissions which are used in a component.

Parameters:
value - Value of a permission used to describe it
labelid - Id of the label assosiated with the permission
permissionCategory - Permission category of the permission
Method Detail

checkAccess

public boolean checkAccess(java.lang.String permissionValue)
Description copied from interface: Permission
Returns true if this permission is identified by the given value.

Specified by:
checkAccess in interface Permission
Parameters:
permissionValue - Value that uniquely identifies the permission to check
Returns:
true if this permission is identified by the given value

getValue

public java.lang.String getValue()
Description copied from interface: Permission
Returns the unique, externally defined, value of the permission.

Specified by:
getValue in interface Permission
Returns:
the unique, externally defined, value of the permission

getCategory

public PermissionCategory getCategory()
Description copied from interface: Permission
Return the permission category of this permission.

Specified by:
getCategory in interface Permission
Returns:
The permission category of this permission.

getLabelId

public java.lang.String getLabelId()
Description copied from interface: Permission
Return the id of the label assosiated with this permission.

Specified by:
getLabelId in interface Permission
Returns:
the label id.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class HtmlObjectWrapperImpl

getName

public java.lang.String getName()
Description copied from interface: Permission
Return the language dependend name of this permission group.

Specified by:
getName in interface Permission
Returns:
Language dependend name of this permission group


Copyright © 2007-2011 GX Software BV. All Rights Reserved.