Class GeneratePDFEngine
- java.lang.Object
 - 
- org.ametys.odf.export.pdf.GeneratePDFEngine
 - 
- org.ametys.plugins.odfweb.catalog.GeneratePDFEngine
 
 
 
- 
- All Implemented Interfaces:
 Runnable
public class GeneratePDFEngine extends GeneratePDFEngine
This engine export the PDF catalog and send it by email. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private SiteManager_siteManager- 
Fields inherited from class org.ametys.odf.export.pdf.GeneratePDFEngine
_catalogRootDirectory, _context, _contextualParameters, _environmentContext, _i18nUtils, _initialized, _LOGGER, _mailFrom, _manager, _sourceResolver 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GeneratePDFEngine() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_doGeneratePDF(Request request)Generate the PDF fileprotected StringgetMailSubject()Get the subject of mailprotected StringgetSiteName()Get the site namevoidinitialize(ServiceManager manager, Context context)Initialize the alert engine.- 
Methods inherited from class org.ametys.odf.export.pdf.GeneratePDFEngine
_checkInitialization, _dispose, _generatePDF, _sendMail, configure, getFailureMailBody, getLanguage, getSuccessMailBody, isRunning, run, setCatalog, setContextualParameters, setIssuer 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_siteManager
private SiteManager _siteManager
 
 - 
 
- 
Constructor Detail
- 
GeneratePDFEngine
public GeneratePDFEngine()
 
 - 
 
- 
Method Detail
- 
initialize
public void initialize(ServiceManager manager, Context context) throws ContextException, ServiceException
Description copied from class:GeneratePDFEngineInitialize the alert engine.- Overrides:
 initializein classGeneratePDFEngine- Parameters:
 manager- the avalon service manager.context- the avalon context.- Throws:
 ContextException- if an error occurs retrieving the environment context.ServiceException- if an error occurs retrieving a component.
 
- 
_doGeneratePDF
protected void _doGeneratePDF(Request request) throws IOException
Description copied from class:GeneratePDFEngineGenerate the PDF file- Overrides:
 _doGeneratePDFin classGeneratePDFEngine- Parameters:
 request- the request- Throws:
 IOException- if an I/O error occurs.
 
- 
getMailSubject
protected String getMailSubject()
Description copied from class:GeneratePDFEngineGet the subject of mail- Overrides:
 getMailSubjectin classGeneratePDFEngine- Returns:
 - the subject
 
 
- 
getSiteName
protected String getSiteName()
Get the site name- Returns:
 - the site name
 
 
 - 
 
 -