fr.paris.lutece.portal.service.mailinglist
Class AdminMailingListService

java.lang.Object
  extended by fr.paris.lutece.portal.service.mailinglist.AdminMailingListService

public final class AdminMailingListService
extends Object

AdminMailingListService


Field Summary
static String ALL_ROLES
           
 
Method Summary
static boolean checkFilter(MailingListUsersFilter filter, int nIdMailingList)
          Check if the filter already exists or not in a mailing list
static ReferenceList getMailingLists(AdminUser user)
          Returns a list of all mailing list visible by the user
static Collection<Recipient> getRecipients(int nIdMailingList)
          Returns all the recipient of a given mailing list
static Collection<Recipient> getRecipients(String strWorkgroup, String strRole)
          Gets all recipients corresponding to a filter based on a Workgroup and a role
static Collection<MailingList> getUserMailingLists(AdminUser user)
          Returns a list of all mailing list visible by the user
static List<MailingList> getUserMailingListsByFilter(AdminUser user, MailingListFilter filter)
          Gets the user mailing lists by filter.
static void init()
          Initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_ROLES

public static final String ALL_ROLES
See Also:
Constant Field Values
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


Copyright © 2014 Mairie de Paris. All Rights Reserved.