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.PrivilegesInfoprotected org.apache.sling.api.SlingJakartaHttpServletRequestprotected org.apache.sling.api.resource.Resourceprotected org.apache.sling.api.SlingJakartaHttpServletResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the current user has been granted privileges to modify the access control of the current node.booleanChecks whether the current user has been granted privileges to modify the access control of the current node.protected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfoLazy create the PrivilegesInfo field the first time it is used.protected voidinit()Instantiates the model.
-
Field Details
-
privilegesInfo
protected org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo privilegesInfo -
request
protected org.apache.sling.api.SlingJakartaHttpServletRequest request -
response
protected org.apache.sling.api.SlingJakartaHttpServletResponse 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
-