Class HtmlPageHome

java.lang.Object
fr.paris.lutece.plugins.htmlpage.business.HtmlPageHome

public class HtmlPageHome extends Object
This class provides instances management methods (create, find, ...) for Htmlpage objects
Author:
lenaini
  • Method Summary

    Modifier and Type
    Method
    Description
    static HtmlPage
    create(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Creation of an instance of htmlpage
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns a collection of htmlpages objects
    static HtmlPage
    findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns an instance of a htmlpage whose identifier is specified in parameter
    static HtmlPage
    findEnabledHtmlPage(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns htmlpage object with valid status
    findEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns a collection of htmlpages objects with valid status
    static void
    remove(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the Htmlpage whose identifier is specified in parameter
    static HtmlPage
    update(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update of the htmlpage which is specified in parameter

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static HtmlPage create(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of an instance of htmlpage
      Parameters:
      htmlpage - The instance of the htmlpage which contains the informations to store
      plugin - The Plugin object
      Returns:
      The instance of htmlpage which has been created with its primary key.
    • update

      public static HtmlPage update(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update of the htmlpage which is specified in parameter
      Parameters:
      htmlpage - The instance of the htmlpage which contains the data to store
      plugin - The Plugin object
      Returns:
      The instance of the htmlpage which has been updated
    • remove

      public static void remove(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the Htmlpage whose identifier is specified in parameter
      Parameters:
      htmlpage - The Htmlpage object to remove
      plugin - The Plugin object
    • findByPrimaryKey

      public static HtmlPage findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns an instance of a htmlpage whose identifier is specified in parameter
      Parameters:
      nKey - The Primary key of the htmlpage
      plugin - The Plugin object
      Returns:
      An instance of htmlpage
    • findAll

      public static Collection<HtmlPage> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a collection of htmlpages objects
      Parameters:
      plugin - The Plugin object
      Returns:
      A collection of htmlpages
    • findEnabledHtmlPage

      public static HtmlPage findEnabledHtmlPage(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns htmlpage object with valid status
      Parameters:
      nKey - the page id
      plugin - The Plugin object
      Returns:
      A htmlpage
    • findEnabledHtmlPageList

      public static Collection<HtmlPage> findEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a collection of htmlpages objects with valid status
      Parameters:
      plugin - The Plugin object
      Returns:
      A collection of htmlpages