Package com.avoka.fc.core.service.impl
Class SubmissionReceiptServiceImpl
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.impl.SubmissionReceiptServiceImpl
- All Implemented Interfaces:
ISubmissionReceiptService
public class SubmissionReceiptServiceImpl
extends CayenneService
implements ISubmissionReceiptService
Provides an implementation for the submission receipt service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createReceiptPdf
(Submission submission) Create the PDF Receipt and store it in the submissionboolean
int
Returns the max render attempts.int
Return the number of submissions for the submission receipt job to process per run.int
Return the number of concurrent worker threads use to render the submission receipts (per available form servers) to use to render the submission receipts.void
setEnableReceipting
(boolean value) Set whether PDF receipt generation is enabled.void
setMaxRenderAttempts
(int maxRenderAttempts) Sets the max render attempts.void
setNumberSubmissionsToProcess
(int value) Set the number of submissions for the submission receipt job to process per run.void
setNumberWorkerThreads
(int numberWorkerThreads) Set the number of concurrent worker threads (per available form servers) to use to render the submission receipts.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
-
Constructor Details
-
SubmissionReceiptServiceImpl
public SubmissionReceiptServiceImpl()
-
-
Method Details
-
getEnableReceipting
public boolean getEnableReceipting()- Specified by:
getEnableReceipting
in interfaceISubmissionReceiptService
- Returns:
- true if PDF receipt generation is enabled
- Since:
- 4.3.4
- See Also:
-
setEnableReceipting
public void setEnableReceipting(boolean value) Set whether PDF receipt generation is enabled.- Parameters:
value
- the value whether PDF receipt generation is enabled.- Since:
- 4.3.4
-
getNumberSubmissionsToProcess
public int getNumberSubmissionsToProcess()Return the number of submissions for the submission receipt job to process per run.- Specified by:
getNumberSubmissionsToProcess
in interfaceISubmissionReceiptService
- Returns:
- number of submissions for the submission receipt job to process per run
- See Also:
-
setNumberSubmissionsToProcess
public void setNumberSubmissionsToProcess(int value) Set the number of submissions for the submission receipt job to process per run.- Parameters:
value
- the number of submissions for the submission receipt job to process per run
-
getMaxRenderAttempts
public int getMaxRenderAttempts()Returns the max render attempts.- Specified by:
getMaxRenderAttempts
in interfaceISubmissionReceiptService
- Returns:
- the max render attempts
- See Also:
-
setMaxRenderAttempts
public void setMaxRenderAttempts(int maxRenderAttempts) Sets the max render attempts.- Parameters:
maxRenderAttempts
- the new max render attempts
-
getNumberWorkerThreads
public int getNumberWorkerThreads()Return the number of concurrent worker threads use to render the submission receipts (per available form servers) to use to render the submission receipts. For example if this value is set to 2 and there are 2 available form servers then we will use 4 concurrent worker threads.- Specified by:
getNumberWorkerThreads
in interfaceISubmissionReceiptService
- Returns:
- the number of concurrent worker threads use to render the submission receipts
-
setNumberWorkerThreads
public void setNumberWorkerThreads(int numberWorkerThreads) Set the number of concurrent worker threads (per available form servers) to use to render the submission receipts. For example if this value is set to 2 and there are 2 available form servers then we will use 4 concurrent worker threads.- Parameters:
numberWorkerThreads
- the number of concurrent worker threads use to render the submission receipts
-
createReceiptPdf
Create the PDF Receipt and store it in the submission- Specified by:
createReceiptPdf
in interfaceISubmissionReceiptService
- Parameters:
submission
- - the submission for which a receipt is to be created- Returns:
- true if a PDF receipt was rendered or false otherwise
- See Also:
-