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 Details

    • SubmissionReceiptServiceImpl

      public SubmissionReceiptServiceImpl()
  • Method Details

    • getEnableReceipting

      public boolean getEnableReceipting()
      Specified by:
      getEnableReceipting in interface ISubmissionReceiptService
      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 interface ISubmissionReceiptService
      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 interface ISubmissionReceiptService
      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 interface ISubmissionReceiptService
      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 interface ISubmissionReceiptService
      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: