Package com.avoka.fc.core.service
Class DeliveryResult
- java.lang.Object
-
- com.avoka.fc.core.service.DeliveryResult
-
public class DeliveryResult extends Object
Provides a Submission Delivery Process Service result class, which can be returned by theIDeliveryProcessService
.- Since:
- 3.6.0
- See Also:
IDeliveryProcessService
,Submission
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeliveryResult.Status
The delivery status values.
-
Constructor Summary
Constructors Constructor Description DeliveryResult(DeliveryResult.Status status)
Create a delivery results object with the given delivery status.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDataPurgeTime()
Return the schedule submission data purge time for completed and undeliverable submissions.String
getDeliveryChannel()
Return the delivery channel for submission.String
getDeliveryStatus()
int
getMaxDeliveryAttempts()
Return the maximum number of delivery attempts which should be performed.String
getMessage()
Return the delivery message to be recorded.Date
getNextDeliveryTime()
Return the next schedule time to attempt a delivery.boolean
isStatusCompleted()
Return true of the delivery status is "Completed"boolean
isStatusError()
Return true of the delivery status is "Error"boolean
isStatusInProgress()
Return true of the delivery status is "In Progress"boolean
isStatusPending()
Return true of the delivery status is "Pending"boolean
isStatusReady()
Return true of the delivery status is "Ready"boolean
isStatusUndeliverable()
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.String
toString()
-
-
-
Constructor Detail
-
DeliveryResult
public DeliveryResult(DeliveryResult.Status status)
Create a delivery results object with the given delivery status.- Parameters:
status
- the submission delivery status to set
-
-
Method Detail
-
getDeliveryStatus
public String 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
public String getMessage()
Return the delivery message to be recorded.- Returns:
- the delivery message
-
setMessage
public void setMessage(String message)
Set the delivery message to be recorded.- Parameters:
message
- the delivery message to set
-
getNextDeliveryTime
public Date getNextDeliveryTime()
Return the next schedule time to attempt a delivery.- Returns:
- the nextDeliveryTime
-
setNextDeliveryTime
public void setNextDeliveryTime(Date nextDeliveryTime)
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
public Date getDataPurgeTime()
Return the schedule submission data purge time for completed and undeliverable submissions.- Returns:
- the submission dataPurgeTime
-
setDataPurgeTime
public void setDataPurgeTime(Date dataPurgeTime)
Set the schedule submission data purge time for completed and undeliverable submissions.- Parameters:
dataPurgeTime
- the submission dataPurgeTime to set
-
getDeliveryChannel
public String getDeliveryChannel()
Return the delivery channel for submission.- Returns:
- the delivery channel for submission
- Since:
- 5.0.2
-
setDeliveryChannel
public void setDeliveryChannel(String deliveryChannel)
Set the delivery channel for submission.- Parameters:
deliveryChannel
- the delivery channel for submission- Since:
- 5.0.2
-
toDeliveryStatus
public static DeliveryResult.Status toDeliveryStatus(String status)
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
-
-