Class NewsLetterArchivePortletDAO

  • All Implemented Interfaces:
    INewsLetterArchivePortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

    public final class NewsLetterArchivePortletDAO
    extends java.lang.Object
    implements INewsLetterArchivePortletDAO
    This class provides Data Access methods for NewsLetterArchivePortlet objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nPortletId)
      Deletes a record from the table.
      java.util.ArrayList<java.lang.Integer> findSendingsInPortlet​(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the sendings associated with a given portlet.
      void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Inserts a new record in the table.
      void insertSending​(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Associates a new sending to a given portlet.
      fr.paris.lutece.portal.business.portlet.Portlet load​(int nPortletId)
      Loads the data of the portlet from the table.
      void removeSending​(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      De-associate a sending from a given portlet.
      void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Updates the record in the table.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewsLetterArchivePortletDAO

        public NewsLetterArchivePortletDAO()
    • Method Detail

      • insert

        public void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Inserts a new record in the table. Not implemented.
        Specified by:
        insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - the object to be inserted
      • delete

        public void delete​(int nPortletId)
        Deletes a record from the table.
        Specified by:
        delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - the portlet id
      • load

        public fr.paris.lutece.portal.business.portlet.Portlet load​(int nPortletId)
        Loads the data of the portlet from the table.
        Specified by:
        load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - the portlet id
        Returns:
        the Portlet object
      • store

        public void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Updates the record in the table. Not implemented.
        Specified by:
        store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - the instance of Portlet class to be updated
      • insertSending

        public void insertSending​(int nPortletId,
                                  int nSendingId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Associates a new sending to a given portlet.
        Specified by:
        insertSending in interface INewsLetterArchivePortletDAO
        Parameters:
        nPortletId - the identifier of the portlet.
        nSendingId - the identifier of the sending.
        plugin - the plugin
      • removeSending

        public void removeSending​(int nPortletId,
                                  int nSendingId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        De-associate a sending from a given portlet.
        Specified by:
        removeSending in interface INewsLetterArchivePortletDAO
        Parameters:
        nPortletId - the identifier of the portlet.
        nSendingId - the identifier of the sending.
        plugin - the plugin
      • findSendingsInPortlet

        public java.util.ArrayList<java.lang.Integer> findSendingsInPortlet​(int nPortletId,
                                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns all the sendings associated with a given portlet.
        Specified by:
        findSendingsInPortlet in interface INewsLetterArchivePortletDAO
        Parameters:
        nPortletId - the identifier of the portlet.
        plugin - the plugin
        Returns:
        a Set of Integer objects containing the identifers of the sendings.