Class MailingListDAO
java.lang.Object
fr.paris.lutece.portal.business.mailinglist.MailingListDAO
- All Implemented Interfaces:
IMailingListDAO
This class provides Data Access methods for MailingList objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckFilter(MailingListUsersFilter filter, int nId) Check if the filter already exists or not in the mailing listvoiddelete(int nMailingListId) Delete a record from the tablevoiddeleteFilter(MailingListUsersFilter filter, int nMailingListId) Remove an users filter from the mailing listvoiddeleteFilters(int nMailingListUsersFilterId) Delete a record from the tablevoidinsert(MailingList mailingList) Insert a new record in the table.voidinsertFilter(MailingListUsersFilter mailingListUsersFilter, int nMailingListId) Insert a new record in the table.load(int nId) Load the data of the mailingList from the tableLoad the data of all the mailingLists and returns them in form of a collectionselectByFilter(MailingListFilter filter) Select by filter.selectByWorkgroup(String strWorkgroup) Returns all mailing lists having a scope restricted to a given workgroupvoidselectMailingListUsersFilters(MailingList mailinglist) Load the data of all the mailingListUsersFilters and returns them in form of a collectionvoidstore(MailingList mailingList) Update the record in the table
-
Constructor Details
-
MailingListDAO
public MailingListDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIMailingListDAO- Parameters:
mailingList- instance of the MailingList object to insert
-
load
Load the data of the mailingList from the table- Specified by:
loadin interfaceIMailingListDAO- Parameters:
nId- The identifier of the mailingList- Returns:
- the instance of the MailingList
-
delete
public void delete(int nMailingListId) Delete a record from the table- Specified by:
deletein interfaceIMailingListDAO- Parameters:
nMailingListId- The identifier of the mailingList
-
store
Update the record in the table- Specified by:
storein interfaceIMailingListDAO- Parameters:
mailingList- The reference of the mailingList
-
selectAll
Load the data of all the mailingLists and returns them in form of a collection- Specified by:
selectAllin interfaceIMailingListDAO- Returns:
- The Collection which contains the data of all the mailingLists
-
selectByWorkgroup
Returns all mailing lists having a scope restricted to a given workgroup- Specified by:
selectByWorkgroupin interfaceIMailingListDAO- Parameters:
strWorkgroup- The workgroup- Returns:
- the collection which contains the data of all the mailingLists
-
insertFilter
Insert a new record in the table.- Specified by:
insertFilterin interfaceIMailingListDAO- Parameters:
nMailingListId- The mailing list IdmailingListUsersFilter- instance of the MailingListUsersFilter object to insert
-
deleteFilter
Remove an users filter from the mailing list- Specified by:
deleteFilterin interfaceIMailingListDAO- Parameters:
nMailingListId- The Id of the mailing listfilter- the filter to remove
-
deleteFilters
public void deleteFilters(int nMailingListUsersFilterId) Delete a record from the table- Parameters:
nMailingListUsersFilterId- The identifier of the mailingListUsersFilter
-
selectMailingListUsersFilters
Load the data of all the mailingListUsersFilters and returns them in form of a collection- Parameters:
mailinglist- The mailing list
-
checkFilter
Check if the filter already exists or not in the mailing list- Specified by:
checkFilterin interfaceIMailingListDAO- Parameters:
filter- the filternId- the id mailing list- Returns:
- true if it already exists, false otherwise
-
selectByFilter
Select by filter.- Specified by:
selectByFilterin interfaceIMailingListDAO- Parameters:
filter- the filter- Returns:
- the list
-