Class AccessFormPage
java.lang.Object
org.apache.sling.starter.access.models.AccessFormPage
Base class for common ACL/ACE functionality
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo
protected org.apache.sling.api.SlingHttpServletRequest
protected org.apache.sling.api.resource.Resource
protected org.apache.sling.api.SlingHttpServletResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the current user has been granted privileges to modify the access control of the current node.boolean
Checks whether the current user has been granted privileges to modify the access control of the current node.protected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo
Lazy create the PrivilegesInfo field the first time it is used.protected void
init()
Instantiates the model.
-
Field Details
-
privilegesInfo
protected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo privilegesInfo -
request
protected org.apache.sling.api.SlingHttpServletRequest request -
response
protected org.apache.sling.api.SlingHttpServletResponse response -
resource
protected org.apache.sling.api.resource.Resource resource
-
-
Constructor Details
-
AccessFormPage
public AccessFormPage()
-
-
Method Details
-
init
Instantiates the model.- Throws:
IOException
-
getPrivilegesInfo
protected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo getPrivilegesInfo()Lazy create the PrivilegesInfo field the first time it is used. -
getCanReadAccessControl
public boolean getCanReadAccessControl()Checks whether the current user has been granted privileges to modify the access control of the current node.- Returns:
- true if the current user has the privileges, false otherwise
-
getCanModifyAccessControl
public boolean getCanModifyAccessControl()Checks whether the current user has been granted privileges to modify the access control of the current node.- Returns:
- true if the current user has the privileges, false otherwise
-
getLocation
-