public class BlogPublicationHome extends Object
Modifier and Type | Method and Description |
---|---|
static BlogPublication |
create(BlogPublication blogPub)
Create an instance of the BlogPublication class
|
static BlogPublication |
findDocPublicationByPimaryKey(int nPortletId,
int nDocId)
load a BlogPublication by Blog id and portlet id
|
static Collection<BlogPublication> |
findSinceDatePublishingAndStatus(Date datePublishing,
Date dateEndPublishing,
int nStatus)
Find the list of
BlogPublication objects specified the status and published at or after the specified date |
static List<BlogPublication> |
getAllDocPublication()
Load all BlogPublication
|
static List<BlogPublication> |
getDocPublicationByIdDoc(int nDocId)
load a list BlogPublication by the Blog identifiant
|
static List<BlogPublication> |
getDocPublicationByPortlet(int nIdPortlet)
load a list BlogPublication by the portlet id
|
static List<BlogPublication> |
getDocPublicationByPortletAndPlublicationDate(int nIdPortlet,
Date datePublishing,
Date dateEndPublishing)
Retrieve all blogs by Portlet and between publication dates.
|
static List<Integer> |
getLastPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds,
Date dateUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of published Blogs, associated with a given collection of porlets, which has been updated since the dateUpdated
|
static 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.
|
static void |
remove(int nIdDoc,
int nIdPortlet)
Delete the BlogPublication by the primary key
|
static void |
removeByIdPortlet(int nIdPortlet)
Delete the BlogPublication by portlet id
|
static void |
update(BlogPublication blogPub)
Update an instance of the BlogPublication
|
public static BlogPublication create(BlogPublication blogPub)
BlogPub
- The instance of the BlogPublication which contains the informations to storepublic static void update(BlogPublication blogPub)
blogPub
- public static List<BlogPublication> getDocPublicationByIdDoc(int nDocId)
nDocId
- The Blog idpublic static List<BlogPublication> getDocPublicationByPortlet(int nIdPortlet)
nIdPortlet
- The protlet idpublic static List<BlogPublication> getDocPublicationByPortletAndPlublicationDate(int nIdPortlet, Date datePublishing, Date dateEndPublishing)
nIdPortlet
- The portlet iddatePublishing
- The publication datedateEndPublishing
- The end publication datepublic static BlogPublication findDocPublicationByPimaryKey(int nPortletId, int nDocId)
nPortletId
- The portlet idnDocId
- The Blogs idpublic static void removeByIdPortlet(int nIdPortlet)
nIdPortlet
- The portlet idpublic static void remove(int nIdDoc, int nIdPortlet)
nIdDoc
- The Blog idnIdPortlet
- The portlet idpublic static List<BlogPublication> getAllDocPublication()
public static Collection<BlogPublication> findSinceDatePublishingAndStatus(Date datePublishing, Date dateEndPublishing, int nStatus)
BlogPublication
objects specified the status and published at or after the specified datedatePublishing
- The publication datedateEndPublishing
- The end publication datenStatus
- The statusBlogPublication
objects Collection
ordered by BlogOrder ascending. The list is empty if no objects found.public static List<Integer> getPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds
- The list of portlet ids.datePublishing
- dateEndPublishing
- The end publication dateplugin
- The Blog pluginpublic static List<Integer> getLastPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds, Date dateUpdated, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds
- The list of portlet ids.dateUpdated
- The date from the blogs had to be updatedplugin
- The pluginCopyright © 2020 City of Paris. All rights reserved.