Class ChildPagesPortletDAO

java.lang.Object
fr.paris.lutece.plugins.childpages.business.portlet.ChildPagesPortletDAO
All Implemented Interfaces:
IChildPagesPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

@ApplicationScoped public final class ChildPagesPortletDAO extends Object implements IChildPagesPortletDAO
This class provides Data Access methods for ChildPagesPortlet objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nPortletId)
    Deletes a record from the table
    getChildPagesPortlets(int parentPageId)
    Loads the portlets bound to a parent page
    void
    insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Inserts a new record in the table
    fr.paris.lutece.portal.business.portlet.Portlet
    load(int nPortletId)
    Loads a portlet by identifier
    fr.paris.lutece.util.ReferenceList
    selectChildPagesList(int nPageId)
    Loads the child pages of a page
    fr.paris.lutece.util.ReferenceList
    Loads all the pages of the database
    void
    store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Updates a record in the table

    Methods inherited from class java.lang.Object

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

    • ChildPagesPortletDAO

      public ChildPagesPortletDAO()
  • Method Details

    • insert

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

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

      public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
      Loads a portlet by identifier
      Specified by:
      load in interface IChildPagesPortletDAO
      Specified by:
      load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      nPortletId - the portlet identifier
      Returns:
      the loaded portlet
    • store

      public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Updates a record in the table
      Specified by:
      store in interface IChildPagesPortletDAO
      Specified by:
      store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      portlet - the portlet to update
    • selectChildPagesList

      public fr.paris.lutece.util.ReferenceList selectChildPagesList(int nPageId)
      Loads the child pages of a page
      Specified by:
      selectChildPagesList in interface IChildPagesPortletDAO
      Parameters:
      nPageId - the page identifier
      Returns:
      the child pages list
    • selectPagesList

      public fr.paris.lutece.util.ReferenceList selectPagesList()
      Loads all the pages of the database
      Specified by:
      selectPagesList in interface IChildPagesPortletDAO
      Returns:
      the pages list
    • getChildPagesPortlets

      public List<ChildPagesPortlet> getChildPagesPortlets(int parentPageId)
      Loads the portlets bound to a parent page
      Specified by:
      getChildPagesPortlets in interface IChildPagesPortletDAO
      Parameters:
      parentPageId - the parent page identifier
      Returns:
      the portlets list