Class CorePermissionsServlet

  • All Implemented Interfaces:
    RestrictedService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class CorePermissionsServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    implements RestrictedService
    The service servlet to retrieve and/or check permissions of a path. The path is necessary only for privilege checks; a 'path' parameter, a suffix or the requested resource is used (in this order). parameters: 'member' and/or 'privilege' (possibly multiple), optional 'path'; each parameter can be a ',' separated list combined with OR; multiple parameters are combined with AND response: {"result":true/false,"userId":...,"path":...,...matching permissions}
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response)  
      ServiceRestrictions.Key getServiceKey()  
      • Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet

        doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
    • Constructor Detail

      • CorePermissionsServlet

        public CorePermissionsServlet()
    • Method Detail

      • doGet

        protected void doGet​(@NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                             @NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                      throws IOException
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        IOException