public final class AdminMailingListService extends Object
Modifier and Type | Method and Description |
---|---|
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
|
public static final String ALL_ROLES
public static void init()
public static ReferenceList getMailingLists(AdminUser user)
user
- The userpublic static Collection<MailingList> getUserMailingLists(AdminUser user)
user
- The userpublic static List<MailingList> getUserMailingListsByFilter(AdminUser user, MailingListFilter filter)
user
- the userfilter
- the filterpublic static Collection<Recipient> getRecipients(int nIdMailingList)
nIdMailingList
- The mailing list Idpublic static Collection<Recipient> getRecipients(String strWorkgroup, String strRole)
strWorkgroup
- The workgroupstrRole
- The rolepublic static boolean checkFilter(MailingListUsersFilter filter, int nIdMailingList)
filter
- the filternIdMailingList
- the id mailing listCopyright © 2020 City of Paris. All rights reserved.