corelib.services.web.components.mailinglists
Interface MailingListDAO


public interface MailingListDAO

Define this interface to fixe the mailing list persistence. It used by MailingListManager to manipulate mailing list persistence.

Since:
0.4.0
Author:
Dominique Liard & Alexia Ramaļoli

Method Summary
 java.util.List<MailingEntry> getAllExistingEMail()
          Get the List of all MailingEntry of your application.
 MailingList loadMailingList(java.lang.String name)
          Return the mailing list which correspond to the name.
 void loadMailingLists(java.util.Hashtable<java.lang.String,MailingList> mailingLists)
          Load all mailing lists into the HashTable parameter.
 void removeMailingList(java.lang.String name)
          Remove the mailing list which correspond to the name.
 void saveMailingList(MailingList mailingList)
          Save the given mailing list.
 

Method Detail

getAllExistingEMail

java.util.List<MailingEntry> getAllExistingEMail()
                                                 throws MailingListException
Get the List of all MailingEntry of your application.

Returns:
The list of all MailingEntry.
Throws:
MailingListException

loadMailingLists

void loadMailingLists(java.util.Hashtable<java.lang.String,MailingList> mailingLists)
                      throws MailingListException
Load all mailing lists into the HashTable parameter.

Parameters:
mailingLists - Hashtable.
Throws:
MailingListException

loadMailingList

MailingList loadMailingList(java.lang.String name)
                            throws MailingListException
Return the mailing list which correspond to the name.

Parameters:
name - String.
Returns:
The requested MailingList.
Throws:
MailingListException

saveMailingList

void saveMailingList(MailingList mailingList)
                     throws MailingListException
Save the given mailing list.

Parameters:
mailingList - MailingList.
Throws:
MailingListException

removeMailingList

void removeMailingList(java.lang.String name)
                       throws MailingListException
Remove the mailing list which correspond to the name.

Parameters:
name - Strng.
Throws:
MailingListException


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.