Class BlogPublicationDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int countPublicationByIdBlogAndDate​(int nIdBlog, java.util.Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Counts the number of valid publication of a blog at a given date.
      void deleteBlogByIdPortlet​(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the BLOGPublication by portlet id
      void deleteBlogsId​(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete docs for the specified portlet
      java.util.List<java.lang.Integer> getLastPublishedBlogsIdsListByPortletIds​(int[] nPortletsIds, java.util.Date dateUpdated, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of published Blogs associated with given collection of portlets.
      java.util.List<java.lang.Integer> getPublishedBlogsIdsListByPortletIds​(int[] nPortletsIds, java.util.Date datePublishing, java.util.Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of id of published BLOGs associated with a given collection of portlets.
      void insertBlogsId​(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a list of doc for a specified blogPublication
      java.util.List<BlogPublication> loadAllBlogsPublication​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load all BLOGPublication
      java.util.List<BlogPublication> loadBlogsByPortlet​(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load a list BLOGPublication by the portlet id
      java.util.List<BlogPublication> loadBlogsByPortletAndPublicationDate​(int nIdPortlet, java.util.Date datePublishing, java.util.Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a list BLOGPublication by the portlet id, and published at or after the specified date.
      java.util.List<BlogPublication> loadBlogsId​(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a list of BLOGPublication
      BlogPublication loadBlogsPublication​(int nPortletId, int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load a BLOGPublication by BLOG id and portlet id
      void remove​(int nDocId, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove BLOGPublication by primary kley
      java.util.Collection<BlogPublication> selectSinceDatePublishingAndStatus​(java.util.Date datePublishing, java.util.Date dateEndPublication, int nStatus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the list of BlogPublication objects specified the status and published at or after the specified date
      void store​(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update an instance of the BLOGPublication
      • Methods inherited from class java.lang.Object

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

      • BlogPublicationDAO

        public BlogPublicationDAO()
    • Method Detail

      • insertBlogsId

        public void insertBlogsId​(BlogPublication blogPublication,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a list of doc for a specified blogPublication
        Specified by:
        insertBlogsId in interface IBlogPublicationDAO
        Parameters:
        blogPublication - the blogPublication to insert
        plugin - the plugin
      • store

        public void store​(BlogPublication blogPublication,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update an instance of the BLOGPublication
        Specified by:
        store in interface IBlogPublicationDAO
        Parameters:
        blogPublication - the publication data
        plugin - the plugin
      • deleteBlogsId

        public void deleteBlogsId​(int nDocId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete docs for the specified portlet
        Specified by:
        deleteBlogsId in interface IBlogPublicationDAO
        Parameters:
        nDocId - The doc identifier
        plugin - the plugin
      • deleteBlogByIdPortlet

        public void deleteBlogByIdPortlet​(int nIdPortlet,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete the BLOGPublication by portlet id
        Specified by:
        deleteBlogByIdPortlet in interface IBlogPublicationDAO
        Parameters:
        nIdPortlet - The portlet id
        plugin - the plugin
      • remove

        public void remove​(int nDocId,
                           int nIdPortlet,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove BLOGPublication by primary kley
        Specified by:
        remove in interface IBlogPublicationDAO
        plugin - the plugin
      • loadBlogsId

        public java.util.List<BlogPublication> loadBlogsId​(int nDocId,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a list of BLOGPublication
        Specified by:
        loadBlogsId in interface IBlogPublicationDAO
        plugin - the plugin
        Returns:
        List of IdDoc
      • loadBlogsByPortlet

        public java.util.List<BlogPublication> loadBlogsByPortlet​(int nIdPortlet,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        load a list BLOGPublication by the portlet id
        Specified by:
        loadBlogsByPortlet in interface IBlogPublicationDAO
        Parameters:
        nIdPortlet - The protlet id
        plugin - the plugin
        Returns:
        list of BLOGPublication
      • loadBlogsByPortletAndPublicationDate

        public java.util.List<BlogPublication> loadBlogsByPortletAndPublicationDate​(int nIdPortlet,
                                                                                    java.util.Date datePublishing,
                                                                                    java.util.Date dateEndPublishing,
                                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a list BLOGPublication by the portlet id, and published at or after the specified date.
        Specified by:
        loadBlogsByPortletAndPublicationDate in interface IBlogPublicationDAO
        Parameters:
        nIdPortlet - The portlet id
        datePublishing - The publication end date
        dateEndPublishing - The publication date
        plugin - the plugin
        Returns:
        list of BLOGPublication
      • loadBlogsPublication

        public BlogPublication loadBlogsPublication​(int nPortletId,
                                                    int nDocId,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        load a BLOGPublication by BLOG id and portlet id
        Specified by:
        loadBlogsPublication in interface IBlogPublicationDAO
        Parameters:
        nPortletId - The portlet id
        nDocId - The blogs id
        plugin - the plugin
        Returns:
        blogPublication
      • selectSinceDatePublishingAndStatus

        public java.util.Collection<BlogPublication> selectSinceDatePublishingAndStatus​(java.util.Date datePublishing,
                                                                                        java.util.Date dateEndPublication,
                                                                                        int nStatus,
                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find the list of BlogPublication objects specified the status and published at or after the specified date
        Specified by:
        selectSinceDatePublishingAndStatus in interface IBlogPublicationDAO
        Parameters:
        datePublishing - The publication end date
        dateEndPublication - The publication date
        nStatus - The status
        plugin - the plugin
        Returns:
        The BlogPublication objects Collection ordered by BlogOrder ascending. The list is empty if no objects found.
      • getPublishedBlogsIdsListByPortletIds

        public java.util.List<java.lang.Integer> getPublishedBlogsIdsListByPortletIds​(int[] nPortletsIds,
                                                                                      java.util.Date datePublishing,
                                                                                      java.util.Date dateEndPublishing,
                                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of id of published BLOGs associated with a given collection of portlets.
        Specified by:
        getPublishedBlogsIdsListByPortletIds in interface IBlogPublicationDAO
        Parameters:
        nPortletsIds - The list of portlet ids.
        datePublishing - The publication date
        dateEndPublishing - The publication end date
        plugin - The blog plugin
        Returns:
        The list of blogs id.
      • getLastPublishedBlogsIdsListByPortletIds

        public java.util.List<java.lang.Integer> getLastPublishedBlogsIdsListByPortletIds​(int[] nPortletsIds,
                                                                                          java.util.Date dateUpdated,
                                                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of published Blogs associated with given collection of portlets. Returns only the blogs updated after given dateUpdated
        Specified by:
        getLastPublishedBlogsIdsListByPortletIds in interface IBlogPublicationDAO
        Parameters:
        nPortletsIds - The list of portlets ids
        dateUpdated - The date from the blogs had been updated
        plugin - the plugin
        Returns:
        the list of blogs id
      • countPublicationByIdBlogAndDate

        public int countPublicationByIdBlogAndDate​(int nIdBlog,
                                                   java.util.Date date,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IBlogPublicationDAO
        Counts the number of valid publication of a blog at a given date.
        Specified by:
        countPublicationByIdBlogAndDate in interface IBlogPublicationDAO
        Returns: