fr.paris.lutece.portal.business.mailinglist
Interface IMailingListDAO

All Known Implementing Classes:
MailingListDAO

public interface IMailingListDAO

IMailingListDAO Interface


Method Summary
 boolean checkFilter(MailingListUsersFilter filter, int nId)
          Check if the filter already exists or not in the mailing list
 void delete(int nIdMailingList)
          Delete a record from the table
 void deleteFilter(MailingListUsersFilter filter, int nId)
          Remove an users filter from the mailing list
 void insert(MailingList mailingList)
          Insert a new record in the table.
 void insertFilter(MailingListUsersFilter filter, int nId)
          Add an users filter to the mailing list
 MailingList load(int nKey)
          load the data of the right from the table
 Collection<MailingList> selectAll()
          Loads the data of all the mailingLists and returns them in form of a collection
 List<MailingList> selectByFilter(MailingListFilter filter)
          Select by filter.
 Collection<MailingList> selectByWorkgroup(String strWorkgroup)
          Returns all mailing lists having a scope restricted to a given workgroup
 void store(MailingList mailingList)
          Update the record in the table
 

Method Detail

insert

void insert(MailingList mailingList)
Insert a new record in the table.

Parameters:
mailingList - instance of the MailingList object to inssert

store

void store(MailingList mailingList)
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

MailingList load(int nKey)
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

Collection<MailingList> selectByWorkgroup(String strWorkgroup)
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

void insertFilter(MailingListUsersFilter filter,
                  int nId)
Add an users filter to the mailing list

Parameters:
filter - the filter to add
nId - The Id of the mailing list

deleteFilter

void deleteFilter(MailingListUsersFilter filter,
                  int nId)
Remove an users filter from the mailing list

Parameters:
filter - the filter to remove
nId - The Id of the mailing list

checkFilter

boolean checkFilter(MailingListUsersFilter filter,
                    int nId)
Check if the filter already exists or not in the mailing list

Parameters:
filter - the filter
nId - the id mailing list
Returns:
true if it already exists, false otherwise

selectByFilter

List<MailingList> selectByFilter(MailingListFilter filter)
Select by filter.

Parameters:
filter - the filter
Returns:
the list


Copyright © 2014 Mairie de Paris. All Rights Reserved.