Interface ISubscriberDAO

All Known Implementing Classes:
SubscriberDAO

public interface ISubscriberDAO
The interface representing the business methods of the subscriber
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(Subscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads data from a subscriber's identifier
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the list of subscribers
    selectByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds a subscriber from his email
    int
    selectNewsLetters(int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns, for a subscriber, the number of his subscriptions
    selectSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of subscribers for a newsletter
    selectSubscribers(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of subscribers for a newsletter
    selectSubscribersForSending(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of subscribers for a newsletter
    selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of subscribers
  • Method Details

    • insert

      void insert(Subscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      subscriber - the object to be inserted
      plugin - the Plugin
    • delete

      void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nId - the subscriber's identifier
      plugin - the Plugin
    • load

      Subscriber load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads data from a subscriber's identifier
      Parameters:
      nId - the subscriber's identifier
      plugin - the Plugin
      Returns:
      an object Subscriber
    • selectAll

      Collection<Subscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the list of subscribers
      Parameters:
      plugin - the Plugin
      Returns:
      a collection of objects Subscriber
    • selectByEmail

      Subscriber selectByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds a subscriber from his email
      Parameters:
      strEmail - the subscriber's email
      plugin - the Plugin
      Returns:
      a subscriber object if it exists, null if not
    • selectSubscribers

      Collection<Subscriber> selectSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of subscribers for a newsletter
      Parameters:
      nNewsLetterId - the newsletter identifier
      plugin - the Plugin
      Returns:
      a collection of subscribers
    • selectSubscribers

      Collection<Subscriber> selectSubscribers(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of subscribers for a newsletter
      Parameters:
      nNewsLetterId - the newsletter identifier
      strSearchString - gets all the subscribers if null or empty and gets the subscribers whith an email containing this string otherwise
      nBegin - the rank of the first subscriber to return
      nEnd - the maximum number of suscribers to return
      plugin - the Plugin
      Returns:
      a collection of subscribers
    • selectSubscribersForSending

      Collection<Subscriber> selectSubscribersForSending(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of subscribers for a newsletter
      Parameters:
      nNewsLetterId - the newsletter identifier
      strSearchString - gets all the subscribers if null or empty and gets the subscribers whith an email containing this string otherwise
      nBegin - the rank of the first subscriber to return
      nEnd - the maximum number of suscribers to return
      plugin - the Plugin
      Returns:
      a collection of subscribers
    • selectNewsLetters

      int selectNewsLetters(int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns, for a subscriber, the number of his subscriptions
      Parameters:
      nSubscriberId - the subscriber's identifier
      plugin - the Plugin
      Returns:
      the number of subscriptions
    • selectSubscribersList

      Collection<Subscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of subscribers
      Parameters:
      plugin - the Plugin
      Returns:
      a collection of subscribers