Package com.avoka.fc.core.service.fluent
Class FluentRenderReceiptService
java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentRenderReceiptService
- All Implemented Interfaces:
IFluentService
,IRenderReceiptDocument
,IRenderReceiptService
,IServiceDefinitionAware
,IUnitTestableService
public class FluentRenderReceiptService
extends AbstractFluentService
implements IRenderReceiptService, IServiceDefinitionAware, IRenderReceiptDocument
Provides a Fluent Render Receipt Service for generating customized PDF receipt documents.
- Since:
- 5.1.0
-
Field Summary
Fields inherited from interface com.avoka.fc.core.service.fluent.IFluentService
PARAM_ACTION_PROPERTIES, PARAMS_FILEDATA, PARAMS_FILENAME, PARAMS_FORM, PARAMS_FORM_XML, PARAMS_FUNC_PARAM, PARAMS_JOB, PARAMS_JOB_ACTION, PARAMS_PARAMS, PARAMS_REQUEST, PARAMS_ROWS, PARAMS_SVC_DEF, PARAMS_TEST_PARAMS, PARAMS_TXN, PARAMS_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReceiptDocument
(Submission submission, HttpServletRequest request, RequestLog requestLog, String receiptMode) Return the PDF Receipt DataDocument for the submission, request and requestLog.byte[]
renderReceipt
(Submission submission, String mode) Return a PDF Receipt byte array rendered from the submission.void
renderReceipt
(Submission submission, HttpServletRequest request, HttpServletResponse response, RequestLog requestLog) Render the PDF Receipt given the submission.boolean
Return true if the service requires Adobe LiveCycle.void
setMaxProcesses
(Integer value) This method does nothing.void
setTestMode
(boolean testMode) This method does nothing.Methods inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
createExceptionAndLog, getCause, getClient, getCommitChanges, getExecutionTimeout, getFunctionTrigger, getGroovyScript, getGroovyServiceLog, getLogger, getRequestUser, getServiceDefinition, getServiceNameAndVersion, getServiceTimeout, getSlf4jLogger, getTestLogOutput, invoke, isExceptionDebugLoggingEnabled, isGroovyDebugLogging, isGroovyLoggingEnabled, runUnitTest, setCommitChanges, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setLogger, setServiceDefinition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.avoka.fc.core.service.IServiceDefinitionAware
getServiceDefinition, setServiceDefinition
-
Constructor Details
-
FluentRenderReceiptService
public FluentRenderReceiptService()
-
-
Method Details
-
getErrorType
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-
renderReceipt
public void renderReceipt(Submission submission, HttpServletRequest request, HttpServletResponse response, RequestLog requestLog) throws ApplicationException Render the PDF Receipt given the submission.- Specified by:
renderReceipt
in interfaceIRenderReceiptService
- Parameters:
submission
- the submission (required)request
- - 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 rendered from the submission.- Specified by:
renderReceipt
in interfaceIRenderReceiptService
- Parameters:
submission
- the submission (required)mode
- the render receipt modeRequestLog.RECEIPT_MODES
- Returns:
- the receipt data in PDF
- Throws:
ApplicationException
- if an error occurs at runtime- See Also:
-
getReceiptDocument
public DataDocument getReceiptDocument(Submission submission, HttpServletRequest request, RequestLog requestLog, String receiptMode) Return the PDF Receipt DataDocument for the submission, request and requestLog.- Specified by:
getReceiptDocument
in interfaceIRenderReceiptDocument
- Parameters:
submission
- the form submission (required)request
- the servlet requestrequestLog
- the request logreceiptMode
- receipt mode in- Returns:
- the PDF Receipt DataDocument for the submission, request and requestLog
- See Also:
-
requiresLiveCycle
public boolean requiresLiveCycle()Description copied from interface:IRenderReceiptService
Return true if the service requires Adobe LiveCycle.- Specified by:
requiresLiveCycle
in interfaceIRenderReceiptService
- Returns:
- true
- See Also:
-
setTestMode
public void setTestMode(boolean testMode) This method does nothing.- Specified by:
setTestMode
in interfaceIRenderReceiptService
- Parameters:
testMode
- Specify whether running in test mode an render receipt changes should not be committed to database- 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:
-