Class UserUtils
- java.lang.Object
-
- com.adobe.acs.commons.httpcache.util.UserUtils
-
public class UserUtils extends Object
Utilties tied to user groups and authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_ID_ANONYMOUSUser id for anonymous requests
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getUserGroupMembershipNames(org.apache.jackrabbit.api.security.user.User user)Get the list of names of groups for which this user has a membership.static booleanisAnonymous(String userId)Check if the given user id is anonymous.
-
-
-
Field Detail
-
USER_ID_ANONYMOUS
public static final String USER_ID_ANONYMOUS
User id for anonymous requests- See Also:
- Constant Field Values
-
-
Method Detail
-
isAnonymous
public static boolean isAnonymous(String userId)
Check if the given user id is anonymous.- Parameters:
userId-- Returns:
-
getUserGroupMembershipNames
public static List<String> getUserGroupMembershipNames(org.apache.jackrabbit.api.security.user.User user) throws javax.jcr.RepositoryException
Get the list of names of groups for which this user has a membership.- Parameters:
user-- Returns:
- Throws:
javax.jcr.RepositoryException
-
-