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
Constructors Constructor Description SubmissionReceiptServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createReceiptPdf(Submission submission)
Create the PDF Receipt and store it in the submissionboolean
getEnableReceipting()
int
getMaxRenderAttempts()
Returns the max render attempts.int
getNumberSubmissionsToProcess()
Return the number of submissions for the submission receipt job to process per run.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.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
-
-
-
-
Method Detail
-
getEnableReceipting
public boolean getEnableReceipting()
- Specified by:
getEnableReceipting
in interfaceISubmissionReceiptService
- Returns:
- true if PDF receipt generation is enabled
- Since:
- 4.3.4
- See Also:
ISubmissionReceiptService.getEnableReceipting()
-
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:
ISubmissionReceiptService.getNumberSubmissionsToProcess()
-
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:
ISubmissionReceiptService.getMaxRenderAttempts()
-
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
public boolean createReceiptPdf(Submission submission)
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:
ISubmissionReceiptService.createReceiptPdf(Submission)
-
-