Class BlogListPortletDAO

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

    public final class BlogListPortletDAO
    extends java.lang.Object
    implements IBlogListPortletDAO
    This class provides Data Access methods for BlogsListPortlet objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkIsAliasPortlet​(int nPortletId)
      Tests if is a portlet is portlet type alias
      void delete​(int nPortletId)
      Deletes records for a portlet identifier in the tables Blogs_list_portlet
      void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Insert a new record in the table Blogs_list_portlet
      fr.paris.lutece.portal.business.portlet.Portlet load​(int nPortletId)
      Loads the data of Document List Portlet whose identifier is specified in parameter
      java.util.Map<java.lang.Integer,​java.lang.String> loadPages​(java.lang.String strPortletType)
      Load the portlet template whose type is specified in parameter
      fr.paris.lutece.util.ReferenceList selectBlogListPortletReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      int selectMinDocumentBlogOrder()
      Get the min of document blog order
      java.util.Collection<fr.paris.lutece.util.ReferenceItem> selectPortletByType​(int nDocumentId, PortletOrder pOrder, PortletFilter pFilter)
      Load the list of portlet
      void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Update the record in the table
      • Methods inherited from class java.lang.Object

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

      • BlogListPortletDAO

        public BlogListPortletDAO()
    • Method Detail

      • insert

        public void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Insert a new record in the table Blogs_list_portlet
        Specified by:
        insert in interface IBlogListPortletDAO
        Specified by:
        insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - the instance of the Portlet object to insert
      • delete

        public void delete​(int nPortletId)
        Deletes records for a portlet identifier in the tables Blogs_list_portlet
        Specified by:
        delete in interface IBlogListPortletDAO
        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 the data of Document List Portlet whose identifier is specified in parameter
        Specified by:
        load in interface IBlogListPortletDAO
        Specified by:
        load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - The Portlet identifier
        Returns:
        theDocumentListPortlet object
      • loadPages

        public java.util.Map<java.lang.Integer,​java.lang.String> loadPages​(java.lang.String strPortletType)
        Load the portlet template whose type is specified in parameter
        Specified by:
        loadPages in interface IBlogListPortletDAO
        Returns:
        Map template
      • store

        public void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Update the record in the table
        Specified by:
        store in interface IBlogListPortletDAO
        Specified by:
        store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - A portlet
      • checkIsAliasPortlet

        public boolean checkIsAliasPortlet​(int nPortletId)
        Tests if is a portlet is portlet type alias
        Specified by:
        checkIsAliasPortlet in interface IBlogListPortletDAO
        Parameters:
        nPortletId - The identifier of the document
        Returns:
        true if the portlet is alias, false otherwise
      • selectBlogListPortletReferenceList

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

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

        public int selectMinDocumentBlogOrder()
        Get the min of document blog order
        Specified by:
        selectMinDocumentBlogOrder in interface IBlogListPortletDAO
        Returns:
        The minimum order from blog list portlet