public class Message extends Object implements MayHaveSender
Modifier and Type | Class and Description |
---|---|
class |
Message.CannotSortDocumentsUsingMessageOrder |
static class |
Message.MessageBuilder |
Modifier and Type | Field and Description |
---|---|
List<Document> |
attachments |
org.joda.time.DateTime |
deliveryTime |
String |
invoiceReference |
String |
messageId |
Document |
primaryDocument |
MessageRecipient |
recipient |
Long |
senderId |
SenderOrganization |
senderOrganization |
NO_SENDER
Modifier and Type | Method and Description |
---|---|
static Message |
copyMessageWithOnlyDigipostDetails(Message messageToCopy) |
static Message |
copyMessageWithOnlyPrintDetails(Message messageToCopy) |
Comparator<? super Document> |
documentOrder() |
List<Document> |
getAllDocuments() |
Channel |
getChannel() |
Long |
getSenderId() |
SenderOrganization |
getSenderOrganization() |
boolean |
hasAnyDocumentRequiringPreEncryption() |
boolean |
isDirectPrint() |
boolean |
isSameMessageAs(Message message) |
public final String messageId
public final Long senderId
public final SenderOrganization senderOrganization
public final MessageRecipient recipient
public final org.joda.time.DateTime deliveryTime
public final String invoiceReference
public final Document primaryDocument
public static Message copyMessageWithOnlyPrintDetails(Message messageToCopy)
public static Message copyMessageWithOnlyDigipostDetails(Message messageToCopy)
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.public boolean isDirectPrint()
public boolean isSameMessageAs(Message message)
public boolean hasAnyDocumentRequiringPreEncryption()
public Channel getChannel()
public Comparator<? super Document> documentOrder()
Comparator
which order documents by the same order as they are contained in
this message. If a documentpublic Long getSenderId()
getSenderId
in interface MayHaveSender
null
.public SenderOrganization getSenderOrganization()
getSenderOrganization
in interface MayHaveSender
null
.Copyright © 2016 Digipost. All rights reserved.