Class TrashCanDeliveryProcess
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.submission.TrashCanDeliveryProcess
- All Implemented Interfaces:
IDeliveryProcessService
Provides a null "Trash Can Delivery" process to be used for form testing purposes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeliverSubmission
(Submission submission, DeliveryDetails deliveryDetails) Delivery process which does nothing and returns null.int
Return the maximum number of times the checkpoint delivery process should be attempted.int
Return the maximum number of times the form submission delivery should be attempted if an error occurs.int
Return the minimum submission delivery retry in minutes.boolean
Return true if attachments are going to be delivered.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
-
TrashCanDeliveryProcess
public TrashCanDeliveryProcess()
-
-
Method Details
-
deliverSubmission
public String deliverSubmission(Submission submission, DeliveryDetails deliveryDetails) throws DeliveryException Delivery process which does nothing and returns null.- Specified by:
deliverSubmission
in interfaceIDeliveryProcessService
- Parameters:
submission
- the submission to deliverdeliveryDetails
- the submission delivery details (optional, will not be specified for abandoned submissions)- Returns:
- null
- Throws:
DeliveryException
- if an error occurs
-
getMaxDeliveryAttempts
public int getMaxDeliveryAttempts()Description copied from interface:IDeliveryProcessService
Return the maximum number of times the form submission delivery should be attempted if an error occurs.- Specified by:
getMaxDeliveryAttempts
in interfaceIDeliveryProcessService
- Returns:
- 1
-
getMaxCheckpointDeliveryAttempts
public int getMaxCheckpointDeliveryAttempts()Return the maximum number of times the checkpoint delivery process should be attempted.- Specified by:
getMaxCheckpointDeliveryAttempts
in interfaceIDeliveryProcessService
- Returns:
- the maximum number of times the checkpoint delivery process should be attempted
- Since:
- 4.3.4
- See Also:
-
getRetryDelayMins
public int getRetryDelayMins()Description copied from interface:IDeliveryProcessService
Return the minimum submission delivery retry in minutes.- Specified by:
getRetryDelayMins
in interfaceIDeliveryProcessService
- Returns:
- 0
-
isDeliverAttachments
public boolean isDeliverAttachments()Description copied from interface:IDeliveryProcessService
Return true if attachments are going to be delivered.- Specified by:
isDeliverAttachments
in interfaceIDeliveryProcessService
- Returns:
- false
-