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 classDeliveryResult.StatusThe 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 DategetDataPurgeTime()Return the schedule submission data purge time for completed and undeliverable submissions.StringgetDeliveryChannel()Return the delivery channel for submission.StringgetDeliveryStatus()intgetMaxDeliveryAttempts()Return the maximum number of delivery attempts which should be performed.StringgetMessage()Return the delivery message to be recorded.DategetNextDeliveryTime()Return the next schedule time to attempt a delivery.booleanisStatusCompleted()Return true of the delivery status is "Completed"booleanisStatusError()Return true of the delivery status is "Error"booleanisStatusInProgress()Return true of the delivery status is "In Progress"booleanisStatusPending()Return true of the delivery status is "Pending"booleanisStatusReady()Return true of the delivery status is "Ready"booleanisStatusUndeliverable()Return true of the delivery status is "Undeliverable"voidsetDataPurgeTime(Date dataPurgeTime)Set the schedule submission data purge time for completed and undeliverable submissions.voidsetDeliveryChannel(String deliveryChannel)Set the delivery channel for submission.voidsetMaxDeliveryAttempts(int maxDeliveryAttempts)Set the maximum number of delivery attempts which should be performed.voidsetMessage(String message)Set the delivery message to be recorded.voidsetNextDeliveryTime(Date nextDeliveryTime)Set the next schedule time to attempt a delivery.static DeliveryResult.StatustoDeliveryStatus(String status)Return the corresponding Status enumeration for the text status.StringtoString()
-
-
-
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
-
-