|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.modules.document.service.NewsletterDocumentService
public class NewsletterDocumentService
Newsletter document service. This class implements the singleton design pattern.
| Constructor Summary | |
|---|---|
NewsletterDocumentService()
|
|
| Method Summary | |
|---|---|
String |
copyFileFromDocument(fr.paris.lutece.plugins.document.business.Document document,
String strFileType,
String strDestFolderPath)
Copy specified document's type file into a given folder |
String |
fillTemplateWithDocumentInfos(String strTemplatePath,
fr.paris.lutece.plugins.document.business.Document document,
Locale locale,
String strBaseUrl,
fr.paris.lutece.portal.business.user.AdminUser user)
Fills a given document template with the document data |
String |
generateDocumentsList(NewsletterDocument 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 NewsletterDocumentService |
getInstance()
Returns the instance of the singleton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsletterDocumentService()
| Method Detail |
|---|
public static NewsletterDocumentService getInstance()
public String copyFileFromDocument(fr.paris.lutece.plugins.document.business.Document document,
String strFileType,
String strDestFolderPath)
document - the documentstrFileType - the file typestrDestFolderPath - the destination folder
public String generateDocumentsList(NewsletterDocument 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 locale
public String fillTemplateWithDocumentInfos(String strTemplatePath,
fr.paris.lutece.plugins.document.business.Document 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 user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||