Class AbstractGetAclServlet

    • Field Detail

      • KEY_ORDER

        @Deprecated
        protected static final String KEY_ORDER
        Deprecated.
        since 3.0.12, To be removed when the exported package version goes to 4.0 use JsonConvert.KEY_ORDER instead
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractGetAclServlet

        public AbstractGetAclServlet()
    • Method Detail

      • internalJson

        protected javax.json.JsonObject internalJson​(javax.jcr.Session session,
                                                     String resourcePath,
                                                     String principalId)
                                              throws javax.jcr.RepositoryException
        Specified by:
        internalJson in class AbstractAccessGetServlet
        Throws:
        javax.jcr.RepositoryException
      • internalGetAcl

        protected javax.json.JsonObject internalGetAcl​(javax.jcr.Session jcrSession,
                                                       String resourcePath)
                                                throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • addExtraInfo

        protected void addExtraInfo​(javax.json.JsonObjectBuilder principalJson,
                                    Principal principal,
                                    Map<Principal,​Map<DeclarationType,​Set<String>>> principalToDeclaredAtPaths)
        Override to add additional data to the principal object
        Parameters:
        principalObj - the current principal object
        principal - the current principal
        principalToDeclaredAtPaths - a map of principal the paths where ACEs are declared
      • addRestrictions

        @Deprecated
        protected void addRestrictions​(javax.json.JsonObjectBuilder privilegeObj,
                                       String key,
                                       Set<LocalRestriction> restrictions)
        Deprecated.
        use JsonConvert.addRestrictions(JsonObjectBuilder, String, Set) instead
      • addTo

        @Deprecated
        protected javax.json.JsonObjectBuilder addTo​(javax.json.JsonObjectBuilder builder,
                                                     String key,
                                                     Object value)
        Deprecated.
        use JsonConvert.addTo(javax.json.JsonArrayBuilder, Object) instead
      • addTo

        @Deprecated
        protected javax.json.JsonArrayBuilder addTo​(javax.json.JsonArrayBuilder builder,
                                                    Object value)
        Deprecated.
        use JsonConvert.addTo(JsonObjectBuilder, String, Object) instead
      • getAccessControlEntriesMap

        protected abstract Map<String,​List<javax.jcr.security.AccessControlEntry>> getAccessControlEntriesMap​(javax.jcr.Session session,
                                                                                                                    String absPath,
                                                                                                                    Map<Principal,​Map<DeclarationType,​Set<String>>> declaredAtPaths)
                                                                                                             throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException