structure:pageAccessRights

Fetches the access rights for a certain entity in the system. Very useful for some specific situations. Probably mostly usable for experts in unusual situations.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

interceptionPointName

false

 

String/Object

The interception point you wish to check for access rights.

siteNodeId

false

 

String/Object

State which site node to check.

 

ID-result variable contains:
A list of AccessRightVO.

Examples

This example get’s all access rights for the current page and print out the roles/groups/users for it.

<structure:pageAccessRights id="accessRightsVOList"/>
<h1>Access rights</h1>
<c:forEach var="accessRightsVO" items="${accessRightsVOList}">
  <c:out value="${accessRightsVO}"/>
  <c:forEach var="role" items="${accessRightsVO.roles}">
    role: <c:out value="${role.roleName}"/><br/>
  </c:forEach>
  <c:forEach var="group" items="${accessRightsVO.groups}">
    group: <c:out value="${group.groupName}"/><br/>
  </c:forEach>
<c:forEach var="user" items="${accessRightsVO.users}">
    user: <c:out value="${user.userName}"/><br/>
  </c:forEach>
</c:forEach>



comments powered by Disqus