Class Authorizables.Context

    • Field Detail

      • request

        protected final org.apache.sling.api.SlingHttpServletRequest request
      • response

        protected final org.apache.sling.api.SlingHttpServletResponse response
      • resolver

        protected final org.apache.sling.api.resource.ResourceResolver resolver
      • session

        protected final javax.jcr.Session session
    • Constructor Detail

      • Context

        public Context​(@NotNull
                       @NotNull Authorizables service,
                       @NotNull
                       @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                       @NotNull
                       @NotNull org.apache.sling.api.SlingHttpServletResponse response)
    • Method Detail

      • commit

        public void commit()
                    throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getService

        @NotNull
        public @NotNull Authorizables getService()
      • getResolver

        @NotNull
        public @NotNull org.apache.sling.api.resource.ResourceResolver getResolver()
      • getRequest

        @NotNull
        public @NotNull org.apache.sling.api.SlingHttpServletRequest getRequest()
      • getResponse

        @NotNull
        public @NotNull org.apache.sling.api.SlingHttpServletResponse getResponse()
      • getSession

        public javax.jcr.Session getSession()
      • getUserManager

        @Nullable
        public @Nullable org.apache.jackrabbit.api.security.user.UserManager getUserManager()