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
public class BlankTestReceiptService extends BaseService implements 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
Constructors Constructor Description BlankTestReceiptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
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
requiresLiveCycle()
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
-
-
-
-
Method Detail
-
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:
IRenderReceiptService.renderReceipt(Submission, HttpServletRequest, HttpServletResponse, RequestLog)
-
renderReceipt
public byte[] renderReceipt(Submission submission, String mode) throws ApplicationException
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:
IRenderReceiptService.renderReceipt(Submission, String)
-
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:
IRenderReceiptService.renderReceipt(Submission, String)
-
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:
IRenderReceiptService.setTestMode(boolean)
-
setMaxProcesses
public void setMaxProcesses(Integer value)
This method does nothing.- Specified by:
setMaxProcesses
in interfaceIRenderReceiptService
- Parameters:
value
- the maximum number of concurrent processes- Since:
- 5.0.3
- See Also:
IRenderReceiptService.setMaxProcesses(Integer)
-
-