Class HtmlPageDAO

java.lang.Object
fr.paris.lutece.plugins.htmlpage.business.HtmlPageDAO
All Implemented Interfaces:
IHtmlPageDAO

@ApplicationScoped public class HtmlPageDAO extends Object implements IHtmlPageDAO
This class provides Data Access methods for HtmlPage objects
Author:
lenaini
  • Constructor Details

    • HtmlPageDAO

      public HtmlPageDAO()
  • Method Details

    • insert

      public void insert(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IHtmlPageDAO
      Parameters:
      htmlpage - The htmlpage object
      plugin - The plugin
    • load

      public HtmlPage load(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of HtmlPage from the table
      Specified by:
      load in interface IHtmlPageDAO
      Parameters:
      nHtmlPageId - The identifier of HtmlPage
      plugin - The plugin
      Returns:
      the instance of the HtmlPage
    • delete

      public void delete(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IHtmlPageDAO
      Parameters:
      htmlpage - The HtmlPage object
      plugin - The plugin
    • store

      public void store(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IHtmlPageDAO
      Parameters:
      htmlpage - The reference of htmlpage
      plugin - The plugin
    • selectAll

      public Collection<HtmlPage> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of htmlpages
      Specified by:
      selectAll in interface IHtmlPageDAO
      Parameters:
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages
    • selectEnabledHtmlPage

      public HtmlPage selectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load enabled htmlpage
      Specified by:
      selectEnabledHtmlPage in interface IHtmlPageDAO
      Parameters:
      nHtmlPageId - The page id
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages
    • selectEnabledHtmlPageList

      public Collection<HtmlPage> selectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of htmlpages
      Specified by:
      selectEnabledHtmlPageList in interface IHtmlPageDAO
      Parameters:
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages
    • selectHtmlPagesListByIds

      public List<HtmlPage> selectHtmlPagesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the html page objects and returns them as a list
      Specified by:
      selectHtmlPagesListByIds in interface IHtmlPageDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the html page objects
    • selectIdHtmlPagesList

      public List<Integer> selectIdHtmlPagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the html page objects and returns them as a list
      Specified by:
      selectIdHtmlPagesList in interface IHtmlPageDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the html page objects