public class PublishingService extends Object
| Constructor and Description |
|---|
PublishingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(int nBlogId,
int nPortletId)
Assign
Blog to a Portlet |
BlogPublication |
getBlogPublication(int nPortletId,
int nBlogId)
|
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
|
static PublishingService |
getInstance()
Get the unique instance of the service
|
static List<Integer> |
getLastPublishedBlogsIdsListByPortletIds(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
|
Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getPortletsByBlogId(String strBlogId)
Loads the list of the portlets whoes contain blog specified by id
|
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.
|
Collection<Blog> |
getPublishedBlogsSinceDate(Date datePublishing,
Date dateEndPublishing,
BlogFilter blogFilter,
Locale locale)
Loads the list of the blog whose filter and date publication is specified Return published blogs since the publication date.
|
boolean |
isAssigned(int nBlogId)
Check if the specified
Blog is assigned (unpublished or published) into at least one Portlet |
boolean |
isAssigned(int nBlogId,
int nPortletId)
Check if the specified
Blog is assigned (unpublished or published) into the specified Portlet |
boolean |
isPublished(int nBlogId,
int nPortletId)
Check if the specified
Blog is published into the specified Portlet |
void |
publish(int nBlogId,
int nPortletId)
Publishing blogs assigned to a portlet at the begin of the list
|
void |
unAssign(int nBlogId,
int nPortletId)
unAssign
Blog to a Portlet |
public static PublishingService getInstance()
public void assign(int nBlogId,
int nPortletId)
Blog to a PortletnBlogId - The Blog identifiernPortletId - The Portlet identifierpublic void publish(int nBlogId,
int nPortletId)
nBlogId - the Blog idnPortletId - the portlet identifierpublic void unAssign(int nBlogId,
int nPortletId)
Blog to a PortletnBlogId - The Blog identifiernPortletId - The Portlet identifierpublic boolean isPublished(int nBlogId,
int nPortletId)
Blog is published into the specified Portletpublic boolean isAssigned(int nBlogId)
Blog is assigned (unpublished or published) into at least one Portletpublic boolean isAssigned(int nBlogId,
int nPortletId)
Blog is assigned (unpublished or published) into the specified Portletpublic BlogPublication getBlogPublication(int nPortletId, int nBlogId)
nPortletId - the Portlet identifiernBlogId - the Blog identifierBlogPublication 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> getPortletsByBlogId(String strBlogId)
strBlogId - the blog identifierCollection of the portletspublic Collection<Blog> getPublishedBlogsSinceDate(Date datePublishing, Date dateEndPublishing, BlogFilter blogFilter, Locale locale)
datePublishing - The start publication datedateEndPublishing - The end publication dateblogFilter - 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> getPublishedBlogsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds - The list of portlet ids.datePublishing - plugin - The blog pluginpublic static List<Integer> getLastPublishedBlogsIdsListByPortletIds(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.