Package com.avoka.fc.core.service.test
Class BlankTestReceiptService
java.lang.Object
com.avoka.core.service.BaseService
com.avoka.fc.core.service.test.BlankTestReceiptService
- All Implemented Interfaces:
IRenderReceiptService
Provides a Blank PDF receipt rendering service for use by forms developers running SFM locally on their
own computer without Adobe LiveCycle. This receipt rendering service will return a blank PDF, and should
not be used for production purposes.
-
Field Summary
Fields inherited from class com.avoka.core.service.BaseService
FETCH_LIMIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
renderReceipt
(Submission submission, String mode) Return a PDF Receipt byte array of a blank PDF receipt.void
renderReceipt
(Submission submission, HttpServletRequest request, HttpServletResponse response, RequestLog requestLog) Render a blank PDF Receipt for testing purposes.boolean
Return true if the service requires Adobe LiveCycle.void
setMaxProcesses
(Integer value) This method does nothing.void
setTestMode
(boolean testMode) Specify whether running in test mode an render receipt changes should not be committed to database.Methods inherited from class com.avoka.core.service.BaseService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQueryMatchAll, registerNewObject, rollbackChanges, setFetchLimit, toMap, toMap
-
Constructor Details
-
BlankTestReceiptService
public BlankTestReceiptService()
-
-
Method Details
-
renderReceipt
public void renderReceipt(Submission submission, HttpServletRequest request, HttpServletResponse response, RequestLog requestLog) throws ApplicationException Render a blank PDF Receipt for testing purposes.- Specified by:
renderReceipt
in interfaceIRenderReceiptService
- Parameters:
submission
- the submissionrequest
- - the users Http servlet requestresponse
- - the Http servlet response to render torequestLog
- - the request log parameter- Throws:
ApplicationException
- if an error occurs at runtime- See Also:
-
renderReceipt
Return a PDF Receipt byte array of a blank PDF receipt.- Specified by:
renderReceipt
in interfaceIRenderReceiptService
- Parameters:
submission
- the submissionmode
- the render receipt modeRequestLog.RECEIPT_MODES
- Returns:
- the receipt data in PDF
- Throws:
ApplicationException
- if an error occurs at runtime- See Also:
-
requiresLiveCycle
public boolean requiresLiveCycle()Return true if the service requires Adobe LiveCycle.- Specified by:
requiresLiveCycle
in interfaceIRenderReceiptService
- Returns:
- true if the service requires Adobe LiveCycle
- See Also:
-
setTestMode
public void setTestMode(boolean testMode) Specify whether running in test mode an render receipt changes should not be committed to database.- Specified by:
setTestMode
in interfaceIRenderReceiptService
- Parameters:
testMode
- Specify whether running in test mode an render receipt changes should not be committed to database- Since:
- 4.1.15
- See Also:
-
setMaxProcesses
This method does nothing.- Specified by:
setMaxProcesses
in interfaceIRenderReceiptService
- Parameters:
value
- the maximum number of concurrent processes- Since:
- 5.0.3
- See Also:
-