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 String
getMailSubject()
Get the subject of mailprotected String
getSiteName()
Get the site namevoid
initialize(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:GeneratePDFEngine
Initialize the alert engine.- Overrides:
initialize
in 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:GeneratePDFEngine
Generate the PDF file- Overrides:
_doGeneratePDF
in classGeneratePDFEngine
- Parameters:
request
- the request- Throws:
IOException
- if an I/O error occurs.
-
getMailSubject
protected String getMailSubject()
Description copied from class:GeneratePDFEngine
Get the subject of mail- Overrides:
getMailSubject
in classGeneratePDFEngine
- Returns:
- the subject
-
getSiteName
protected String getSiteName()
Get the site name- Returns:
- the site name
-
-