public class MessageDelivery extends Representation
Modifier and Type | Field and Description |
---|---|
protected List<Document> |
attachments |
protected org.joda.time.DateTime |
deliveredDate |
protected DeliveryMethod |
deliveryMethod |
protected String |
messageId |
protected Document |
primaryDocument |
protected MessageStatus |
status |
links
Constructor and Description |
---|
MessageDelivery() |
MessageDelivery(String messageId,
DeliveryMethod deliveryMethod,
MessageStatus status,
org.joda.time.DateTime deliveredDate) |
Modifier and Type | Method and Description |
---|---|
List<Document> |
getAllDocuments() |
List<Document> |
getAttachments() |
org.joda.time.DateTime |
getDeliveredDate() |
DeliveryMethod |
getDeliveryMethod() |
Document |
getDocumentByUuid(String uuid) |
Link |
getEncryptionKeyLink() |
protected List<Link> |
getLinks() |
String |
getMessageId() |
Document |
getPrimaryDocument() |
Link |
getSelfLink() |
Link |
getSendLink() |
MessageStatus |
getStatus() |
boolean |
isAlreadyDeliveredToDigipost() |
boolean |
isSameMessageAs(Message message) |
protected void |
setLinks(List<Link> links) |
boolean |
willBeDeliveredInDigipost() |
addLink, getLinkByRelationName
protected String messageId
protected DeliveryMethod deliveryMethod
protected MessageStatus status
protected org.joda.time.DateTime deliveredDate
protected Document primaryDocument
public MessageDelivery()
public MessageDelivery(String messageId, DeliveryMethod deliveryMethod, MessageStatus status, org.joda.time.DateTime deliveredDate)
public String getMessageId()
public boolean isSameMessageAs(Message message)
public MessageStatus getStatus()
public Link getEncryptionKeyLink()
public Link getSendLink()
public boolean willBeDeliveredInDigipost()
public boolean isAlreadyDeliveredToDigipost()
public Link getSelfLink()
public DeliveryMethod getDeliveryMethod()
public org.joda.time.DateTime getDeliveredDate()
public Document getPrimaryDocument()
public List<Document> getAllDocuments()
Document
in this delivery.
The primary document will be the first element of the list,
with the attachments following. The list is immutable and
can not be used to change which documents are in this
MessageDelivery.Copyright © 2014 Digipost Open Source. All rights reserved.