public class BlogPublicationDAO extends Object implements IBlogPublicationDAO
| Constructor and Description |
|---|
BlogPublicationDAO() |
| Modifier and Type | Method and Description |
|---|---|
int |
countPublicationByIdBlogAndDate(int nIdBlog,
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
|
List<Integer> |
getLastPublishedBlogsIdsListByPortletIds(int[] nPortletsIds,
Date dateUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of published Blogs associated with given collection of portlets.
|
List<Integer> |
getPublishedBlogsIdsListByPortletIds(int[] nPortletsIds,
Date datePublishing,
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
|
List<BlogPublication> |
loadAllBlogsPublication(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all BLOGPublication
|
List<BlogPublication> |
loadBlogsByPortlet(int nIdPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load a list BLOGPublication by the portlet id
|
List<BlogPublication> |
loadBlogsByPortletAndPublicationDate(int nIdPortlet,
Date datePublishing,
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.
|
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
|
Collection<BlogPublication> |
selectSinceDatePublishingAndStatus(Date datePublishing,
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
|
public void insertBlogsId(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertBlogsId in interface IBlogPublicationDAOblogPublication - the blogPublication to insertplugin - the pluginpublic void store(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IBlogPublicationDAOblogPublication - the publication dataplugin - the pluginpublic void deleteBlogsId(int nDocId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBlogsId in interface IBlogPublicationDAOnDocId - The doc identifierplugin - the pluginpublic void deleteBlogByIdPortlet(int nIdPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBlogByIdPortlet in interface IBlogPublicationDAOnIdPortlet - The portlet idplugin - the pluginpublic void remove(int nDocId,
int nIdPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IBlogPublicationDAOplugin - the pluginpublic List<BlogPublication> loadBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsId in interface IBlogPublicationDAOplugin - the pluginpublic List<BlogPublication> loadBlogsByPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsByPortlet in interface IBlogPublicationDAOnIdPortlet - The protlet idplugin - the pluginpublic List<BlogPublication> loadBlogsByPortletAndPublicationDate(int nIdPortlet, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsByPortletAndPublicationDate in interface IBlogPublicationDAOnIdPortlet - The portlet iddatePublishing - The publication end datedateEndPublishing - The publication dateplugin - the pluginpublic BlogPublication loadBlogsPublication(int nPortletId, int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsPublication in interface IBlogPublicationDAOnPortletId - The portlet idnDocId - The blogs idplugin - the pluginpublic List<BlogPublication> loadAllBlogsPublication(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAllBlogsPublication in interface IBlogPublicationDAOpublic Collection<BlogPublication> selectSinceDatePublishingAndStatus(Date datePublishing, Date dateEndPublication, int nStatus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
BlogPublication objects specified the status and published at or after the specified dateselectSinceDatePublishingAndStatus in interface IBlogPublicationDAOdatePublishing - The publication end datedateEndPublication - The publication datenStatus - The statusplugin - the pluginBlogPublication objects Collection ordered by BlogOrder ascending. The list is empty if no objects found.public List<Integer> getPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getPublishedBlogsIdsListByPortletIds in interface IBlogPublicationDAOnPortletsIds - The list of portlet ids.datePublishing - The publication datedateEndPublishing - The publication end dateplugin - The blog pluginpublic List<Integer> getLastPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date dateUpdated, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getLastPublishedBlogsIdsListByPortletIds in interface IBlogPublicationDAOnPortletsIds - The list of portlets idsdateUpdated - The date from the blogs had been updatedplugin - the pluginpublic int countPublicationByIdBlogAndDate(int nIdBlog,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
IBlogPublicationDAOcountPublicationByIdBlogAndDate in interface IBlogPublicationDAOCopyright © 2020 City of Paris. All rights reserved.