Package nl.gx.webmanager.authorization
Interface Permission
-
- All Superinterfaces:
HtmlObjectWrapper
public interface Permission extends HtmlObjectWrapper
An approval to perform an operation on one or more protected objects.
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkAccess(String permissionValue)
Returns true if this permission is identified by the given value.PermissionCategory
getCategory()
Return the permission category of this permission.String
getGroupId()
Return the grouping id of this permission.String
getLabelId()
Return the id of the label associated with this permission.String
getName()
Return the language dependent name of this permission group.String
getValue()
Returns the unique, externally defined, value of the permission.boolean
isWorkflowPermission()
Returnstrue
in case this permission can be assigned to a workflow activity,false
otherwise.-
Methods inherited from interface nl.gx.webmanager.authorization.HtmlObjectWrapper
getId, getUuid
-
-
-
-
Field Detail
-
MOVE_PAGE_PERMISSION
static final String MOVE_PAGE_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_PAGE_PERMISSION
static final String CREATE_PAGE_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_PAGE_PAGEMODEL_PERMISSION
@Deprecated static final String CREATE_PAGE_PAGEMODEL_PERMISSION
Deprecated.- See Also:
- Constant Field Values
-
CREATE_PAGEVERSION_PERMISSION
static final String CREATE_PAGEVERSION_PERMISSION
- See Also:
- Constant Field Values
-
DELETE_PAGE_PERMISSION
static final String DELETE_PAGE_PERMISSION
- See Also:
- Constant Field Values
-
UPDATE_PAGE_PERMISSION
static final String UPDATE_PAGE_PERMISSION
- See Also:
- Constant Field Values
-
DELETE_PAGESECTION_PERMISSION
static final String DELETE_PAGESECTION_PERMISSION
- See Also:
- Constant Field Values
-
COPY_PERMISSION
static final String COPY_PERMISSION
Permission which is needed to copy a page, page section or media item.- See Also:
- Constant Field Values
-
UPDATE_PAGE_SECTION_PERMISSION
static final String UPDATE_PAGE_SECTION_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_PAGE_SECTION_PERMISSION
static final String CREATE_PAGE_SECTION_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_MEDIAITEM_PERMISSION
static final String CREATE_MEDIAITEM_PERMISSION
- See Also:
- Constant Field Values
-
UPDATE_MEDIAITEM_PERMISSION
static final String UPDATE_MEDIAITEM_PERMISSION
- See Also:
- Constant Field Values
-
DELETE_MEDIAITEM_PERMISSION
static final String DELETE_MEDIAITEM_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_TAGS_PERMISSION
static final String CREATE_TAGS_PERMISSION
- See Also:
- Constant Field Values
-
UPDATE_PAGE_MODELS
@Deprecated static final String UPDATE_PAGE_MODELS
Deprecated.- See Also:
- Constant Field Values
-
UM_CREATE_USER_PERMISSION
static final String UM_CREATE_USER_PERMISSION
- See Also:
- Constant Field Values
-
UM_READ_USER_PERMISSION
static final String UM_READ_USER_PERMISSION
- See Also:
- Constant Field Values
-
UM_UPDATE_USER_PERMISSION
static final String UM_UPDATE_USER_PERMISSION
- See Also:
- Constant Field Values
-
UM_DELETE_USER_PERMISSION
static final String UM_DELETE_USER_PERMISSION
- See Also:
- Constant Field Values
-
UM_CREATE_GROUP_PERMISSION
static final String UM_CREATE_GROUP_PERMISSION
- See Also:
- Constant Field Values
-
UM_READ_GROUP_PERMISSION
static final String UM_READ_GROUP_PERMISSION
- See Also:
- Constant Field Values
-
UM_UPDATE_GROUP_PERMISSION
static final String UM_UPDATE_GROUP_PERMISSION
- See Also:
- Constant Field Values
-
UM_DELETE_GROUP_PERMISSION
static final String UM_DELETE_GROUP_PERMISSION
- See Also:
- Constant Field Values
-
UM_CREATE_WORD_PERMISSION
static final String UM_CREATE_WORD_PERMISSION
- See Also:
- Constant Field Values
-
UM_READ_WORD_PERMISSION
static final String UM_READ_WORD_PERMISSION
- See Also:
- Constant Field Values
-
UM_DELETE_WORD_PERMISSION
static final String UM_DELETE_WORD_PERMISSION
- See Also:
- Constant Field Values
-
CREATE_LINK_PERMISSION
static final String CREATE_LINK_PERMISSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkAccess
boolean checkAccess(String permissionValue)
Returns true if this permission is identified by the given value.- Parameters:
permissionValue
- Value that uniquely identifies the permission to check- Returns:
- true if this permission is identified by the given value
-
getValue
String getValue()
Returns the unique, externally defined, value of the permission.- Returns:
- the unique, externally defined, value of the permission
-
getCategory
PermissionCategory getCategory()
Return the permission category of this permission.- Returns:
- The permission category of this permission.
-
getLabelId
String getLabelId()
Return the id of the label associated with this permission.- Returns:
- the label id.
-
getGroupId
String getGroupId()
Return the grouping id of this permission. Groups are used to group permissions of different components in the permissions overview panel for a certain role. If this is empty, normal 'RBAC category' grouping is used.- Returns:
- the grouping id.
-
getName
String getName()
Return the language dependent name of this permission group.- Returns:
- Language dependent name of this permission group
-
isWorkflowPermission
boolean isWorkflowPermission()
Returnstrue
in case this permission can be assigned to a workflow activity,false
otherwise.- Returns:
true
in case this permission can be assigned to a workflow activity,false
otherwise
-
-