public static void setAcl()

in src/main/java/org/apache/sling/jcr/repoinit/impl/AclUtil.java [144:160]


    public static void setAcl(
            SessionContext context,
            List<String> principals,
            List<String> paths,
            List<String> privileges,
            boolean isAllow,
            List<RestrictionClause> restrictionClauses,
            List<String> options)
            throws RepositoryException {

        for (String jcrPath : getJcrPaths(context.getSession(), paths)) {
            if (jcrPath != null && !context.getSession().nodeExists(jcrPath)) {
                throw new PathNotFoundException("Cannot set ACL on non-existent path " + jcrPath);
            }
            setAcl(context, principals, jcrPath, privileges, isAllow, restrictionClauses, options);
        }
    }