Class AllowedUsers


  • public class AllowedUsers
    extends Object
    Wrapper class to represent a set of allowed users, which can eventually be anonymous or any connected user.
    • Method Detail

      • isAnonymousAllowed

        public boolean isAnonymousAllowed()
        Returns true if any anonymous user is allowed
        Returns:
        true if any anonymous user is allowed
      • isAnyConnectedUserAllowed

        public boolean isAnyConnectedUserAllowed()
        Returns true if any connected user is allowed
        Returns:
        true if any connected user is allowed
      • resolveAllowedUsers

        public Set<UserIdentityresolveAllowedUsers​(boolean returnAll)
        Resolve the actual allowed users, taking into account the anyconnected, allowed and denied users and groups. If anonymous is allowed, it will return an empty list.
        Parameters:
        returnAll - Set to true to resolve all users if any connected user is allowed. If false, returns an empty Set if any connected user is allowed.
        Returns:
        the computed actual allowed users