Interface IBlogPublicationDAO
- All Known Implementing Classes:
BlogPublicationDAO
public interface IBlogPublicationDAO
-
Method Summary
Modifier and TypeMethodDescriptionintcountPublicationByIdBlogAndDate(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.voiddeleteBlogByIdPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete the BLOGPublication by portlet idvoiddeleteBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete docs for the specified portletgetLastPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date dateUpdatedFrom, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of published Blogs associated with given collection of portlets.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.voidinsertBlogsId(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a list of doc for a specified blogPublicationloadAllBlogsPublication(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all BLOGPublicationloadBlogsByPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) load a list BLOGPublication by the portlet idloadBlogsByPortletAndPublicationDate(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.loadBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a list of BLOGPublicationloadBlogsPublication(int nPortletId, int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin) load a BLOGPublication by BLOG id and portlet idvoidremove(int nDocId, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove BLOGPublication by primary kleyselectSinceDatePublishingAndStatus(Date datePublishing, Date dateEndPublishing, int nStatus, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the list ofBlogPublicationobjects specified the status and published at or after the specified datevoidstore(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an instance of the BLOGPublication
-
Method Details
-
insertBlogsId
void insertBlogsId(BlogPublication blogPublication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a list of doc for a specified blogPublication- Parameters:
blogPublication- the blogPublication to insertplugin- the plugin
-
deleteBlogsId
void deleteBlogsId(int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete docs for the specified portlet- Parameters:
nDocId- The doc identifierplugin- the plugin
-
loadBlogsId
Load a list of BLOGPublication- Parameters:
nDocId-plugin- the plugin- Returns:
- List of IdDoc
-
loadBlogsByPortlet
List<BlogPublication> loadBlogsByPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) load a list BLOGPublication by the portlet id- Parameters:
nIdPortlet- The protlet idplugin- the plugin- Returns:
- list of BLOGPublication
-
loadBlogsByPortletAndPublicationDate
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.- Parameters:
nIdPortlet- The portlet iddatePublishing- The publication end datedateEndPublishing- The publication dateplugin- the plugin- Returns:
- list of BLOGPublication
-
deleteBlogByIdPortlet
void deleteBlogByIdPortlet(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete the BLOGPublication by portlet id- Parameters:
nIdPortlet- The portlet idplugin- the plugin
-
loadBlogsPublication
BlogPublication loadBlogsPublication(int nPortletId, int nDocId, fr.paris.lutece.portal.service.plugin.Plugin plugin) load a BLOGPublication by BLOG id and portlet id- Parameters:
nPortletId- The portlet idnDocId- The blogs idplugin- the plugin- Returns:
- blogPublication
-
store
Update an instance of the BLOGPublication- Parameters:
blogPublication- the publication dataplugin- the plugin
-
remove
void remove(int nDocId, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove BLOGPublication by primary kley- Parameters:
nDocId-nIdPortlet-plugin- the plugin
-
loadAllBlogsPublication
Load all BLOGPublication- Parameters:
plugin-- Returns:
- The list of BLOGPublication
-
selectSinceDatePublishingAndStatus
Collection<BlogPublication> selectSinceDatePublishingAndStatus(Date datePublishing, Date dateEndPublishing, int nStatus, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the list ofBlogPublicationobjects specified the status and published at or after the specified date- Parameters:
datePublishing- The publication end datedateEndPublishing- The publication datenStatus- The statusplugin- the plugin- Returns:
- The
BlogPublicationobjectsCollectionordered by BlogOrder ascending. The list is empty if no objects found.
-
getPublishedBlogsIdsListByPortletIds
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.- Parameters:
nPortletsIds- The list of portlet ids.datePublishing- The publication datedateEndPublishing- The publication end dateplugin- The blog plugin- Returns:
- The list of blogs id.
-
getLastPublishedBlogsIdsListByPortletIds
List<Integer> getLastPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date dateUpdatedFrom, 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- Parameters:
nPortletsIds- The list of portlets idsdateUpdatedFrom- The date from the blogs had been updatedplugin- the plugin- Returns:
- the list of blogs id
-
countPublicationByIdBlogAndDate
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.- Parameters:
nIdBlog-date-plugin-- Returns:
-