Package org.cyclos.impl.utils.pdf
Class PdfHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractGlobalServerComponent
-
- org.cyclos.impl.BaseGlobalHandlerImpl
-
- org.cyclos.impl.utils.pdf.PdfHandlerImpl
-
- All Implemented Interfaces:
PdfHandler
@Component public class PdfHandlerImpl extends BaseGlobalHandlerImpl implements PdfHandler
Implementation forPdfHandler
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractGlobalServerComponent
rawEntityManagerHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description PdfHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()PdfTemplatenewTemplate(String html, String css)Creates a new template for PDF generation from the given HTML and optional custom CSS.-
Methods inherited from class org.cyclos.impl.AbstractGlobalServerComponent
getBaseEntityManagerHandler, getEntityManager
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.utils.pdf.PdfHandler
newTemplate
-
-
-
-
Method Detail
-
initialize
@PostConstruct public void initialize()
-
newTemplate
public PdfTemplate newTemplate(String html, String css)
Description copied from interface:PdfHandlerCreates a new template for PDF generation from the given HTML and optional custom CSS. The HTML is actually interpreted by Thymeleaf. Additional setup of thePdfTemplatecan be performed before calling thePdfTemplate.render()method to actually generate the PDF. If the html parameter is actually the name of a report template, reads it instead.- Specified by:
newTemplatein interfacePdfHandler
-
-