management:accessRights

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

true

 

String/Object

The interception point you wish to check for access rights.

parameters

true

 

String/Object

Depending on the interception point you will need to send in contentId, siteNodeId or similar.

ID-result variable contains: A list of AccessRightVO.

Examples

This example get’s all access rights and print out the roles/groups/users for it. In this case the access rights are fetched for the content with id 543.

<management:accessRights id="accessRightsVOList" interceptionPointName="Content.Read" parameters="543"/>
<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