Package com.avoka.fc.core.service
Class DeliveryResult
java.lang.Object
com.avoka.fc.core.service.DeliveryResult
Provides a Submission Delivery Process Service result class, which can be returned by the
IDeliveryProcessService
.- Since:
- 3.6.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDeliveryResult
(DeliveryResult.Status status) Create a delivery results object with the given delivery status. -
Method Summary
Modifier and TypeMethodDescriptionReturn the schedule submission data purge time for completed and undeliverable submissions.Return the delivery channel for submission.int
Return the maximum number of delivery attempts which should be performed.Return the delivery message to be recorded.Return the next schedule time to attempt a delivery.boolean
Return true of the delivery status is "Completed"boolean
Return true of the delivery status is "Error"boolean
Return true of the delivery status is "In Progress"boolean
Return true of the delivery status is "Pending"boolean
Return true of the delivery status is "Ready"boolean
Return true of the delivery status is "Undeliverable"void
setDataPurgeTime
(Date dataPurgeTime) Set the schedule submission data purge time for completed and undeliverable submissions.void
setDeliveryChannel
(String deliveryChannel) Set the delivery channel for submission.void
setMaxDeliveryAttempts
(int maxDeliveryAttempts) Set the maximum number of delivery attempts which should be performed.void
setMessage
(String message) Set the delivery message to be recorded.void
setNextDeliveryTime
(Date nextDeliveryTime) Set the next schedule time to attempt a delivery.static DeliveryResult.Status
toDeliveryStatus
(String status) Return the corresponding Status enumeration for the text status.toString()
-
Constructor Details
-
DeliveryResult
Create a delivery results object with the given delivery status.- Parameters:
status
- the submission delivery status to set
-
-
Method Details
-
getDeliveryStatus
- Returns:
- the submission delivery status
-
isStatusReady
public boolean isStatusReady()Return true of the delivery status is "Ready"- Returns:
- true of the delivery status is "Ready"
-
isStatusInProgress
public boolean isStatusInProgress()Return true of the delivery status is "In Progress"- Returns:
- true of the delivery status is "In Progress"
-
isStatusPending
public boolean isStatusPending()Return true of the delivery status is "Pending"- Returns:
- true of the delivery status is "Pending"
-
isStatusCompleted
public boolean isStatusCompleted()Return true of the delivery status is "Completed"- Returns:
- true of the delivery status is "Completed"
-
isStatusError
public boolean isStatusError()Return true of the delivery status is "Error"- Returns:
- true of the delivery status is "Error"
-
isStatusUndeliverable
public boolean isStatusUndeliverable()Return true of the delivery status is "Undeliverable"- Returns:
- true of the delivery status is "Undeliverable"
-
getMessage
Return the delivery message to be recorded.- Returns:
- the delivery message
-
setMessage
Set the delivery message to be recorded.- Parameters:
message
- the delivery message to set
-
getNextDeliveryTime
Return the next schedule time to attempt a delivery.- Returns:
- the nextDeliveryTime
-
setNextDeliveryTime
Set the next schedule time to attempt a delivery.- Parameters:
nextDeliveryTime
- the nextDeliveryTime to set
-
getMaxDeliveryAttempts
public int getMaxDeliveryAttempts()Return the maximum number of delivery attempts which should be performed.- Returns:
- the maxDeliveryAttempts
-
setMaxDeliveryAttempts
public void setMaxDeliveryAttempts(int maxDeliveryAttempts) Set the maximum number of delivery attempts which should be performed.- Parameters:
maxDeliveryAttempts
- the maxDeliveryAttempts to set
-
getDataPurgeTime
Return the schedule submission data purge time for completed and undeliverable submissions.- Returns:
- the submission dataPurgeTime
-
setDataPurgeTime
Set the schedule submission data purge time for completed and undeliverable submissions.- Parameters:
dataPurgeTime
- the submission dataPurgeTime to set
-
getDeliveryChannel
Return the delivery channel for submission.- Returns:
- the delivery channel for submission
- Since:
- 5.0.2
-
setDeliveryChannel
Set the delivery channel for submission.- Parameters:
deliveryChannel
- the delivery channel for submission- Since:
- 5.0.2
-
toDeliveryStatus
Return the corresponding Status enumeration for the text status.- Parameters:
status
- the text status value- Returns:
- the corresponding Status enumeration for the text status
- Since:
- 5.0
-
toString
-