Class AdminMailingListService
java.lang.Object
fr.paris.lutece.portal.service.mailinglist.AdminMailingListService
AdminMailingListService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
ALL_ROLES
- See Also:
-
-
Method Details
-
getMailingLists
Returns a list of all mailing list visible by the user- Parameters:
user- The user- Returns:
- The list as a ReferenceList
-
getUserMailingLists
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
Returns all the recipient of a given mailing list- Parameters:
nIdMailingList- The mailing list Id- Returns:
- The list
-
getRecipients
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
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
-