Class AdminMailingListService
- java.lang.Object
-
- fr.paris.lutece.portal.service.mailinglist.AdminMailingListService
-
public final class AdminMailingListService extends java.lang.ObjectAdminMailingListService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALL_ROLES
-
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 java.util.Collection<Recipient>getRecipients(int nIdMailingList)Returns all the recipient of a given mailing liststatic java.util.Collection<Recipient>getRecipients(java.lang.String strWorkgroup, java.lang.String strRole)Gets all recipients corresponding to a filter based on a Workgroup and a rolestatic java.util.Collection<MailingList>getUserMailingLists(AdminUser user)Returns a list of all mailing list visible by the userstatic java.util.List<MailingList>getUserMailingListsByFilter(AdminUser user, MailingListFilter filter)Gets the user mailing lists by filter.static voidinit()Initialize
-
-
-
Field Detail
-
ALL_ROLES
public static final java.lang.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 java.util.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 java.util.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 java.util.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 java.util.Collection<Recipient> getRecipients(java.lang.String strWorkgroup, java.lang.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
-
-