Class UserUtils


  • public class UserUtils
    extends Object
    Utilties tied to user groups and authentication.
    • 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