Class SubscriptionSubscriberMapBySubscriberType

    • Constructor Detail

      • SubscriptionSubscriberMapBySubscriberType

        public SubscriptionSubscriberMapBySubscriberType​(SubscriptionSubscriber... subscribers)
        Initializing from a list of SubscriptionSubscriber.
        Parameters:
        subscribers - the list of subscription subscribers.
    • Method Detail

      • add

        public void add​(SubscriptionSubscriber subscriber)
        Adds the given subscriber into the current indexation.
        Parameters:
        subscriber - the subscriber to add.
      • getAllUserIds

        public List<String> getAllUserIds()
        Retrieves from the indexed map all unique identifiers of user identifiers (so the users of groups are taken into account).
        Returns:
        the complete list of user identifiers (those of groups too).
      • filterOnDomainVisibilityFrom

        public SubscriptionSubscriberMapBySubscriberType filterOnDomainVisibilityFrom​(UserDetail user)
        Removes from this map the subscribers that have not the same domain visibility as the one of the given user.
        Parameters:
        user - the user that represents the visibility to verify.
        Returns:
        itself.