public final class MailingListHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFilterToMailingList(MailingListUsersFilter filter,
int nId)
Add an new user filter to a mailing list
|
static boolean |
checkFilter(MailingListUsersFilter filter,
int nId)
Check if the filter already exists or not in a mailing list
|
static MailingList |
create(MailingList mailingList)
Creation of an instance of mailingList
|
static void |
deleteFilterToMailingList(MailingListUsersFilter filter,
int nId)
Remove an user filter from a mailing list
|
static Collection<MailingList> |
findAll()
Loads the data of all the mailingLists and returns them in form of a collection
|
static MailingList |
findByPrimaryKey(int nKey)
Returns an instance of a mailingList whose identifier is specified in parameter
|
static Collection<MailingList> |
findByWorkgroup(String strWorkgroup)
Find all mailing lists visible by a workgroup
|
static List<MailingList> |
findsByFilter(MailingListFilter filter)
Find by filter.
|
static void |
remove(int nMailingListId)
Remove the mailingList whose identifier is specified in parameter
|
static MailingList |
update(MailingList mailingList)
Update of the mailingList which is specified in parameter
|
public static MailingList create(MailingList mailingList)
mailingList - The instance of the MailingList which contains the informations to storepublic static MailingList update(MailingList mailingList)
mailingList - The instance of the MailingList which contains the data to storepublic static void remove(int nMailingListId)
nMailingListId - The mailingList Idpublic static MailingList findByPrimaryKey(int nKey)
nKey - The mailingList primary keypublic static Collection<MailingList> findAll()
public static Collection<MailingList> findByWorkgroup(String strWorkgroup)
strWorkgroup - The workgrouppublic static void addFilterToMailingList(MailingListUsersFilter filter, int nId)
filter - The filter to addnId - The Id of the mailing listpublic static void deleteFilterToMailingList(MailingListUsersFilter filter, int nId)
filter - The filter to removenId - The Id of the mailing listpublic static boolean checkFilter(MailingListUsersFilter filter, int nId)
filter - the filternId - the id mailing listpublic static List<MailingList> findsByFilter(MailingListFilter filter)
filter - the filterCopyright © 2016 City of Paris. All rights reserved.