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 void
    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 List<HtmlPage>
    getHtmlPagesListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the avant objects and returns them as a list
    static List<Integer>
    getIdHtmlPagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the html page objects and returns them as a list
    static void
    remove(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the Htmlpage whose identifier is specified in parameter
    static void
    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 void 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
    • update

      public static void 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
    • 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
    • getHtmlPagesListByIds

      public static List<HtmlPage> getHtmlPagesListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects
    • getIdHtmlPagesList

      public static List<Integer> getIdHtmlPagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the html page objects and returns them as a list
      Returns:
      the list which contains the id of all the html page objects