Class AdminMailingListService
- java.lang.Object
-
- fr.paris.lutece.portal.service.mailinglist.AdminMailingListService
-
public final class AdminMailingListService extends Object
AdminMailingListService
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckFilter(MailingListUsersFilter filter, int nIdMailingList)Check if the filter already exists or not in a mailing liststatic ReferenceListgetMailingLists(AdminUser user)Returns a list of all mailing list visible by the userstatic Collection<Recipient>getRecipients(int nIdMailingList)Returns all the recipient of a given mailing liststatic Collection<Recipient>getRecipients(String strWorkgroup, String strRole)Gets all recipients corresponding to a filter based on a Workgroup and a rolestatic Collection<MailingList>getUserMailingLists(AdminUser user)Returns a list of all mailing list visible by the userstatic List<MailingList>getUserMailingListsByFilter(AdminUser user, MailingListFilter filter)Gets the user mailing lists by filter.static voidinit()Initialize
-
-
-
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 userfilter- 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 workgroupstrRole- 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 filternIdMailingList- the id mailing list- Returns:
- true if it already exists, false otherwise
-
-