public class BlogPublicationDAO extends Object implements IBlogPublicationDAO
Constructor and Description |
---|
BlogPublicationDAO() |
Modifier and Type | Method and Description |
---|---|
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 IBlogPublicationDAO
blogPublication
- the blogPublication to insertpublic void store(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IBlogPublicationDAO
public void deleteBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBlogsId
in interface IBlogPublicationDAO
public void deleteBlogByIdPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBlogByIdPortlet
in interface IBlogPublicationDAO
nIdPortlet
- The portlet idpublic void remove(int nDocId, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IBlogPublicationDAO
public List<BlogPublication> loadBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsId
in interface IBlogPublicationDAO
public List<BlogPublication> loadBlogsByPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsByPortlet
in interface IBlogPublicationDAO
nIdPortlet
- The protlet idpublic List<BlogPublication> loadBlogsByPortletAndPublicationDate(int nIdPortlet, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsByPortletAndPublicationDate
in interface IBlogPublicationDAO
nIdPortlet
- The portlet iddatePublishing
- The publication end datedateEndPublishing
- The publication datepublic BlogPublication loadBlogsPublication(int nPortletId, int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogsPublication
in interface IBlogPublicationDAO
nPortletId
- The portlet idnDocId
- The blogs idpublic List<BlogPublication> loadAllBlogsPublication(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAllBlogsPublication
in interface IBlogPublicationDAO
public 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 IBlogPublicationDAO
datePublishing
- The publication end datedateEndPublication
- The publication datenStatus
- The statusBlogPublication
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 IBlogPublicationDAO
nPortletsIds
- The list of portlet ids.datePublishing
- 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 IBlogPublicationDAO
nPortletsIds
- The list of portlets idsdateUpdated
- The date from the blogs had been updatedCopyright © 2020 City of Paris. All rights reserved.