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 |
ZonedDateTime |
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() |
Stream<Document> |
getAllDocuments() |
Channel |
getChannel() |
Long |
getSenderId() |
SenderOrganization |
getSenderOrganization() |
boolean |
hasAnyDocumentRequiringEncryption() |
boolean |
isDirectPrint() |
boolean |
isSameMessageAs(Message message) |
public final String messageId
public final Long senderId
public final SenderOrganization senderOrganization
public final MessageRecipient recipient
public final ZonedDateTime deliveryTime
public final String invoiceReference
public final Document primaryDocument
public static Message copyMessageWithOnlyPrintDetails(Message messageToCopy)
public static Message copyMessageWithOnlyDigipostDetails(Message messageToCopy)
public Stream<Document> getAllDocuments()
Document
in this message.
The primary document will be the first element of the list,
with the attachments following.public boolean isDirectPrint()
public boolean isSameMessageAs(Message message)
public boolean hasAnyDocumentRequiringEncryption()
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 © 2018 Digipost. All rights reserved.