Interface IMailingListDAO
- All Known Implementing Classes:
MailingListDAO
public interface IMailingListDAO
IMailingListDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckFilter(MailingListUsersFilter filter, int nId) Check if the filter already exists or not in the mailing listvoiddelete(int nIdMailingList) Delete a record from the tablevoiddeleteFilter(MailingListUsersFilter filter, int nId) Remove an users filter from the mailing listvoidinsert(MailingList mailingList) Insert a new record in the table.voidinsertFilter(MailingListUsersFilter filter, int nId) Add an users filter to the mailing listload(int nKey) load the data of the right from the tableLoads 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 workgroupvoidstore(MailingList mailingList) Update the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
mailingList- instance of the MailingList object to inssert
-
store
Update the record in the table- Parameters:
mailingList- the reference of the MailingList
-
delete
void delete(int nIdMailingList) Delete a record from the table- Parameters:
nIdMailingList- int identifier of the MailingList to delete
-
load
load the data of the right from the table- Parameters:
nKey- The identifier of the mailingList- Returns:
- The instance of the mailingList
-
selectAll
Collection<MailingList> selectAll()Loads the data of all the mailingLists and returns them in form of a collection- Returns:
- the collection which contains the data of all the mailingLists
-
selectByWorkgroup
Returns all mailing lists having a scope restricted to a given workgroup- Parameters:
strWorkgroup- The workgroup- Returns:
- the collection which contains the data of all the mailingLists
-
insertFilter
Add an users filter to the mailing list- Parameters:
filter- the filter to addnId- The Id of the mailing list
-
deleteFilter
Remove an users filter from the mailing list- Parameters:
filter- the filter to removenId- The Id of the mailing list
-
checkFilter
Check if the filter already exists or not in the mailing list- Parameters:
filter- the filternId- the id mailing list- Returns:
- true if it already exists, false otherwise
-
selectByFilter
Select by filter.- Parameters:
filter- the filter- Returns:
- the list
-