Class SubscriptionUtil


  • public class SubscriptionUtil
    extends Object
    Utility class shared by other classes of the same package.
    • Constructor Detail

      • SubscriptionUtil

        public SubscriptionUtil()
    • Method Detail

      • isSameVisibilityAsTheCurrentRequester

        public static boolean isSameVisibilityAsTheCurrentRequester​(UserDetail user,
                                                                    UserDetail currentRequester)
        Indicates if the given user has same domain visibility as the current requester.
        Parameters:
        user - the user to verify.
        currentRequester - the current user requester.
        Returns:
        true if same domain visibility, false otherwise.
      • isSameVisibilityAsTheCurrentRequester

        public static boolean isSameVisibilityAsTheCurrentRequester​(Group group,
                                                                    UserDetail currentRequester)
        Indicates if the given group has same domain visibility as the current requester.
        Parameters:
        group - the group to verify.
        currentRequester - the current user requester.
        Returns:
        true if same domain visibility, false otherwise.