Class AceUtils
java.lang.Object
org.apache.sling.starter.access.models.AceUtils
Utility for helping to sort and order privileges by their longest aggregate depth
-
Method Summary
Modifier and TypeMethodDescriptiongetPrivilegeLongestPathMap
(javax.jcr.Session jcrSession) Calculate the longest path for each of the possible privileges
-
Method Details
-
getPrivilegeLongestPathMap
public static Map<javax.jcr.security.Privilege,String> getPrivilegeLongestPathMap(javax.jcr.Session jcrSession) throws javax.jcr.RepositoryException Calculate the longest path for each of the possible privileges- Parameters:
jcrSession
- the current users JCR session- Returns:
- map where the key is the privilege and the value is the longest path
- Throws:
javax.jcr.RepositoryException
-