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
public class TrashCanDeliveryProcess extends CayenneService implements IDeliveryProcessService
Provides a null "Trash Can Delivery" process to be used for form testing purposes.
-
-
Constructor Summary
Constructors Constructor Description TrashCanDeliveryProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
deliverSubmission(Submission submission, DeliveryDetails deliveryDetails)
Delivery process which does nothing and returns null.int
getMaxCheckpointDeliveryAttempts()
Return the maximum number of times the checkpoint delivery process should be attempted.int
getMaxDeliveryAttempts()
Return the maximum number of times the form submission delivery should be attempted if an error occurs.int
getRetryDelayMins()
Return the minimum submission delivery retry in minutes.boolean
isDeliverAttachments()
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
-
-
-
-
Method Detail
-
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:
IDeliveryProcessService.getMaxCheckpointDeliveryAttempts()
-
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
-
-