Class PuppeteerRenderReceiptService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.AbstractRenderReceiptService
-
- com.avoka.fc.core.service.LocalProcessRenderReceiptService
-
- com.avoka.fc.core.service.puppeteer.PuppeteerRenderReceiptService
-
- All Implemented Interfaces:
IRenderReceiptService
,IServiceDefinitionAware
public class PuppeteerRenderReceiptService extends LocalProcessRenderReceiptService
Use Chromium Puppeteer to render a receipt.- Since:
- 19.05.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
LocalProcessRenderReceiptService.ProcessParams
-
-
Field Summary
-
Fields inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
fallbackTimeout, receiptPropertiesJson, subfolder
-
Fields inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
CONTENT_TYPE_PDF
-
-
Constructor Summary
Constructors Constructor Description PuppeteerRenderReceiptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Semaphore
getMaxProcessesSemphore()
String
getPuppeteerExe()
Return the name of the Puppeteer executable file (excluding the .exe file extension on Windows)protected String
getReceiptSubdirectory()
Boolean
isCleanupReceiptFiles()
Return the system default JSON string containing the receipt properties.protected boolean
isDeleteFiles()
protected LocalProcessRenderReceiptService.ProcessParams
populateProcessParams(LocalProcessRenderReceiptService.ProcessParams params, String workDir)
void
setCleanupReceiptFiles(Boolean value)
Set the JSON string containing the receipt properties.void
setPuppeteerExe(String puppeteerExe)
Set the name of the Puppeteer executable file (excluding the .exe file extension on Windows)-
Methods inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
appendContextDebugInfo, getFallbackTimeout, getReceiptDocument, getReceiptPropertiesJson, rasterize, requiresLiveCycle, setFallbackTimeout, setReceiptPropertiesJson
-
Methods inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
getMaxProcesses, getServiceDefinition, hasSignatureReceiptTemplate, isSignatureReceiptRequest, renderReceipt, renderReceipt, setMaxProcesses, setServiceDefinition, setTestMode, updateReceiptMode, updateReceiptMode
-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
isCleanupReceiptFiles
public Boolean isCleanupReceiptFiles()
Return the system default JSON string containing the receipt properties. This can be overridden on the organization and form version level.- Returns:
- the JSON properties
-
setCleanupReceiptFiles
public void setCleanupReceiptFiles(Boolean value)
Set the JSON string containing the receipt properties.- Parameters:
value
- the JSON properties
-
getPuppeteerExe
public String getPuppeteerExe()
Return the name of the Puppeteer executable file (excluding the .exe file extension on Windows)- Returns:
- the name of the Puppeteer executable file
-
setPuppeteerExe
public void setPuppeteerExe(String puppeteerExe)
Set the name of the Puppeteer executable file (excluding the .exe file extension on Windows)- Parameters:
puppeteerExe
- the name of the Puppeteer executable file
-
isDeleteFiles
protected boolean isDeleteFiles()
- Specified by:
isDeleteFiles
in classLocalProcessRenderReceiptService
-
getMaxProcessesSemphore
protected Semaphore getMaxProcessesSemphore()
- Specified by:
getMaxProcessesSemphore
in classLocalProcessRenderReceiptService
-
getReceiptSubdirectory
protected String getReceiptSubdirectory()
- Specified by:
getReceiptSubdirectory
in classLocalProcessRenderReceiptService
-
populateProcessParams
protected LocalProcessRenderReceiptService.ProcessParams populateProcessParams(LocalProcessRenderReceiptService.ProcessParams params, String workDir)
- Specified by:
populateProcessParams
in classLocalProcessRenderReceiptService
-
-