Class AdminMailingListService


  • public final class AdminMailingListService
    extends Object
    AdminMailingListService
    • Method Detail

      • init

        public static void init()
        Initialize
      • getMailingLists

        public static ReferenceList getMailingLists​(AdminUser user)
        Returns a list of all mailing list visible by the user
        Parameters:
        user - The user
        Returns:
        The list as a ReferenceList
      • getUserMailingLists

        public static Collection<MailingList> getUserMailingLists​(AdminUser user)
        Returns a list of all mailing list visible by the user
        Parameters:
        user - The user
        Returns:
        The list as a mailinglist Collection
      • getUserMailingListsByFilter

        public static List<MailingList> getUserMailingListsByFilter​(AdminUser user,
                                                                    MailingListFilter filter)
        Gets the user mailing lists by filter.
        Parameters:
        user - the user
        filter - the filter
        Returns:
        the user mailing lists by filter
      • getRecipients

        public static Collection<Recipient> getRecipients​(int nIdMailingList)
        Returns all the recipient of a given mailing list
        Parameters:
        nIdMailingList - The mailing list Id
        Returns:
        The list
      • getRecipients

        public static Collection<Recipient> getRecipients​(String strWorkgroup,
                                                          String strRole)
        Gets all recipients corresponding to a filter based on a Workgroup and a role
        Parameters:
        strWorkgroup - The workgroup
        strRole - The role
        Returns:
        A collection of recipient
      • checkFilter

        public static boolean checkFilter​(MailingListUsersFilter filter,
                                          int nIdMailingList)
        Check if the filter already exists or not in a mailing list
        Parameters:
        filter - the filter
        nIdMailingList - the id mailing list
        Returns:
        true if it already exists, false otherwise