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 nDocId,
int nPortletId)
load a BlogPublication by Blog id and portlet id
|
static Collection<BlogPublication> |
findSinceDatePublishingAndStatus(Date datePublishing,
Date dateEndPublishing,
int nStatus)
Find the list of
DocumentPublication 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<Integer> |
getPublishedDocumentsIdsListByPortletIds(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 BlogPublication findDocPublicationByPimaryKey(int nDocId, int nPortletId)
nDocId - The Blogs idnPortletId - The portlet 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)
DocumentPublication objects specified the status and published at or after the specified datedatePublishing - The publication datedateEndPublishing - The end publication datenStatus - The statusDocumentPublication objects Collection ordered by documentOrder ascending. The list is empty if no objects found.public static List<Integer> getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds - The list of portlet ids.datePublishing - TODOdateEndPublishing - The end publication dateplugin - The document pluginCopyright © 2018 City of Paris. All rights reserved.