public class PublishingService extends Object
| Constructor and Description |
|---|
PublishingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(int nDocumentId,
int nPortletId)
Assign
Document to a Portlet |
Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getBlogsPortlets()
Loads the list of portlets
|
Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getBlogsPortletstoPublish()
Loads the list of portlets blogs empty and blogslist
|
BlogPublication |
getDocumentPublication(int nPortletId,
int nDocumentId)
Return a
DocumentPublication from a Portlet identifier and Document identifier |
static PublishingService |
getInstance()
Get the unique instance of the service
|
Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getPortletsByDocumentId(String strDocumentId)
Loads the list of the portlets whoes contain blog specified by 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.
|
Collection<Blog> |
getPublishedDocumentsSinceDate(Date datePublishing,
Date dateEndPublishing,
BlogFilter documentFilter,
Locale locale)
Loads the list of the blog whose filter and date publication is specified Return published documents since the publication date.
|
boolean |
isAssigned(int nDocumentId)
Check if the specified
Document is assigned (unpublished or published) into at least one Portlet |
boolean |
isAssigned(int nDocumentId,
int nPortletId)
Check if the specified
Document is assigned (unpublished or published) into the specified Portlet |
boolean |
isPublished(int nDocumentId,
int nPortletId)
Check if the specified
Document is published into the specified Portlet |
void |
publish(int nDocumentId,
int nPortletId)
Publishing documents assigned to a portlet at the begin of the list
|
void |
unAssign(int nDocumentId,
int nPortletId)
unAssign
Document to a Portlet |
public static PublishingService getInstance()
public void assign(int nDocumentId,
int nPortletId)
Document to a PortletnDocumentId - The Document identifiernPortletId - The Portlet identifierpublic void publish(int nDocumentId,
int nPortletId)
nDocumentId - the Document idnPortletId - the portlet identifierpublic void unAssign(int nDocumentId,
int nPortletId)
Document to a PortletnDocumentId - The Document identifiernPortletId - The Portlet identifierpublic boolean isPublished(int nDocumentId,
int nPortletId)
Document is published into the specified PortletnDocumentId - The Document identifiernPortletId - The Portlet identifierDocument is published, false else (unpublished or not assigned)public boolean isAssigned(int nDocumentId)
Document is assigned (unpublished or published) into at least one PortletnDocumentId - The Document identifierDocument is assigned (published or unpublished), false else (not assigned)public boolean isAssigned(int nDocumentId,
int nPortletId)
Document is assigned (unpublished or published) into the specified PortletnDocumentId - The Document identifiernPortletId - The Portlet identifierDocument is assigned (published or unpublished), false else (not assigned)public BlogPublication getDocumentPublication(int nPortletId, int nDocumentId)
DocumentPublication from a Portlet identifier and Document identifiernPortletId - the Portlet identifiernDocumentId - the Document identifierDocumentPublication or null if no object matchpublic Collection<fr.paris.lutece.portal.business.portlet.Portlet> getBlogsPortlets()
Collection of the portletspublic Collection<fr.paris.lutece.portal.business.portlet.Portlet> getBlogsPortletstoPublish()
Collection of the portletspublic Collection<fr.paris.lutece.portal.business.portlet.Portlet> getPortletsByDocumentId(String strDocumentId)
strDocumentId - the blog identifierCollection of the portletspublic Collection<Blog> getPublishedDocumentsSinceDate(Date datePublishing, Date dateEndPublishing, BlogFilter documentFilter, Locale locale)
datePublishing - The start publication datedateEndPublishing - The end publication datedocumentFilter - The filter for the published blog. The filter can be null or empty. The array of Ids will not be taked in account.locale - The locale is used to get the list of blogs with the findByFilter methodpublic 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 - TODOplugin - The document pluginCopyright © 2018 City of Paris. All rights reserved.