Package com.composum.sling.nodes.servlet
Class SecurityServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- org.apache.sling.api.servlets.SlingAllMethodsServlet
-
- com.composum.sling.core.servlet.AbstractServiceServlet
-
- com.composum.sling.nodes.servlet.SecurityServlet
-
- All Implemented Interfaces:
com.composum.sling.core.service.RestrictedService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class SecurityServlet extends com.composum.sling.core.servlet.AbstractServiceServlet
The service servlet to retrieve all general system settings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityServlet.AccessPolicyEntry
static class
SecurityServlet.Extension
class
SecurityServlet.GetAccessPolicies
the access rules retrieval for an JSON result of on policy listclass
SecurityServlet.GetAllAccessPolicies
the access rules retrieval for an JSON result of all policy aspectsclass
SecurityServlet.GetHtmlAccessRules
the access rules retrieval for an HTML table resultclass
SecurityServlet.GetPrincipals
static class
SecurityServlet.Operation
static class
SecurityServlet.PolicyScope
class
SecurityServlet.PutAccessPolicy
create a new AccessControlEntryclass
SecurityServlet.RemoveAccessPolicy
remove an AccessControlEntryclass
SecurityServlet.ReorderOperation
class
SecurityServlet.RestrictionNames
class
SecurityServlet.SupportedPrivileges
-
Field Summary
Fields Modifier and Type Field Description protected com.composum.sling.core.servlet.ServletOperationSet<SecurityServlet.Extension,SecurityServlet.Operation>
operations
static String
PARAM_SCOPE
static String
SERVICE_KEY
static String
SERVLET_PATH
-
Fields inherited from class com.composum.sling.core.servlet.AbstractServiceServlet
DATE_FORMAT, PARAM_BEFORE, PARAM_CMD, PARAM_FILE, PARAM_FILTER, PARAM_ID, PARAM_INDEX, PARAM_JCR_CONTENT, PARAM_LABEL, PARAM_MIME_TYPE, PARAM_NAME, PARAM_PATH, PARAM_QUERY, PARAM_RESOURCE_TYPE, PARAM_TITLE, PARAM_TYPE, PARAM_URL, PARAM_VALUE, PARAM_VERSION
-
-
Constructor Summary
Constructors Constructor Description SecurityServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull com.composum.sling.core.servlet.ServletOperationSet<SecurityServlet.Extension,SecurityServlet.Operation>
getOperations()
void
init()
setup of the servlet operation set for this servlet instanceprotected boolean
sameEntry(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient)
protected boolean
samePrivileges(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient)
protected boolean
sameRestrictions(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient)
-
Methods inherited from class com.composum.sling.core.servlet.AbstractServiceServlet
deactivate, doDelete, doGet, doPost, doPut, getJsonObject, getJsonObject, getJsonObject, getPath, getResource, getRestrictions, getServiceKey, isEnabled, jsonAnswerItemExists, jsonValue, methodDeletePermission, methodGetPermission, methodPostPermission, methodPutPermission, setNoCacheHeaders, tryToUseRawSuffix
-
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
getAllowedRequestMethods, isMethodValid, mayService
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
-
-
-
-
Field Detail
-
SERVICE_KEY
public static final String SERVICE_KEY
- See Also:
- Constant Field Values
-
SERVLET_PATH
public static final String SERVLET_PATH
- See Also:
- Constant Field Values
-
PARAM_SCOPE
public static final String PARAM_SCOPE
- See Also:
- Constant Field Values
-
operations
protected com.composum.sling.core.servlet.ServletOperationSet<SecurityServlet.Extension,SecurityServlet.Operation> operations
-
-
Method Detail
-
getOperations
@NotNull protected @NotNull com.composum.sling.core.servlet.ServletOperationSet<SecurityServlet.Extension,SecurityServlet.Operation> getOperations()
- Specified by:
getOperations
in classcom.composum.sling.core.servlet.AbstractServiceServlet
-
init
public void init() throws javax.servlet.ServletException
setup of the servlet operation set for this servlet instance- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
sameEntry
protected boolean sameEntry(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
samePrivileges
protected boolean samePrivileges(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient)
-
sameRestrictions
protected boolean sameRestrictions(org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry jrEntry, SecurityServlet.AccessPolicyEntry entrySendFromClient) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-