public class NewsletterBlogService extends Object
| Constructor and Description |
|---|
NewsletterBlogService() |
| Modifier and Type | Method and Description |
|---|---|
String |
copyFileFromDocument(fr.paris.lutece.plugins.blog.business.Blog document,
String strFileType,
String strDestFolderPath)
Copy specified document's type file into a given folder
|
String |
fillTemplateWithDocumentInfos(String strTemplatePath,
fr.paris.lutece.plugins.blog.business.Blog document,
Locale locale,
String strBaseUrl,
fr.paris.lutece.portal.business.user.AdminUser user)
Fills a given document template with the document data
|
String |
generateDocumentsList(NewsletterBlog newsletterDocument,
int nTemplateId,
Timestamp datePublishing,
String strBaseUrl,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Generate the html code for documents corresponding to the documents associated with the topic and to a given publishing date
|
static NewsletterBlogService |
getInstance()
Returns the instance of the singleton
|
fr.paris.lutece.util.ReferenceList |
getPortletBlogList()
Load the portlet of type blog_LIST
|
public static NewsletterBlogService getInstance()
public String copyFileFromDocument(fr.paris.lutece.plugins.blog.business.Blog document, String strFileType, String strDestFolderPath)
document - the blogstrFileType - the file typestrDestFolderPath - the destination folderpublic String generateDocumentsList(NewsletterBlog newsletterDocument, int nTemplateId, Timestamp datePublishing, String strBaseUrl, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
newsletterDocument - the topic to generatenTemplateId - the document id to usedatePublishing - minimum date of publishing of documents. Documents published before this date will not be consideredstrBaseUrl - the url of the portaluser - The current admin userlocale - The localepublic String fillTemplateWithDocumentInfos(String strTemplatePath, fr.paris.lutece.plugins.blog.business.Blog document, Locale locale, String strBaseUrl, fr.paris.lutece.portal.business.user.AdminUser user)
strBaseUrl - The base url of the portalstrTemplatePath - The path of the template filedocument - the object gathering the document datalocale - the locale used to build the templateuser - The current userpublic fr.paris.lutece.util.ReferenceList getPortletBlogList()
Copyright © 2018 City of Paris. All rights reserved.