Class BlogPortletDAO

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

    public final class BlogPortletDAO
    extends Object
    implements IBlogPortletDAO
    this class provides Data Access methods for BlogsPortlet objects
    • Constructor Detail

      • BlogPortletDAO

        public BlogPortletDAO()
    • Method Detail

      • insert

        public void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Insert a new record in the table.
        Specified by:
        insert in interface IBlogPortletDAO
        Specified by:
        insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - The Instance of the Portlet
      • delete

        public void delete​(int nPortletId)
        Delete record from table
        Specified by:
        delete in interface IBlogPortletDAO
        Specified by:
        delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - The indentifier of the Portlet
      • store

        public void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Update the record in the table
        Specified by:
        store in interface IBlogPortletDAO
        Specified by:
        store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - The reference of the portlet
      • load

        public fr.paris.lutece.portal.business.portlet.Portlet load​(int nIdPortlet)
        load the data of dbpagePortlet from the table
        Specified by:
        load in interface IBlogPortletDAO
        Specified by:
        load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nIdPortlet - The identifier of the portlet
        Returns:
        portlet The instance of the object portlet
      • selectBlogPortletReferenceList

        public fr.paris.lutece.util.ReferenceList selectBlogPortletReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Specified by:
        selectBlogPortletReferenceList in interface IBlogPortletDAO
        Returns:
      • selectPortletByType

        public Collection<fr.paris.lutece.util.ReferenceItem> selectPortletByType​(int nDocumentId,
                                                                                  PortletOrder pOrder,
                                                                                  PortletFilter pFilter)
        Load the list of portlet
        Specified by:
        selectPortletByType in interface IBlogPortletDAO
        Parameters:
        nDocumentId - the document ID
        pOrder - order of the portlets
        pFilter - the filter
        Returns:
        The Collection of the ReferenceItem