Class Message

    • Method Detail

      • copyPrintMessage

        public static Message copyPrintMessage​(Message messageToCopy)
        Copies a message and forces all its documents to have file type of PDF.
        Parameters:
        messageToCopy - message to copy
        Returns:
        a copy of messageToCopy
      • copyMessageWithOnlyDigipostDetails

        public static Message copyMessageWithOnlyDigipostDetails​(Message messageToCopy)
      • getAllDocuments

        public Stream<Document> getAllDocuments()
        Returns:
        an ordered Stream containing every Document in this message. The primary document will be the first element of the list, with the attachments following.
      • isDirectPrint

        public boolean isDirectPrint()
      • isSameMessageAs

        public boolean isSameMessageAs​(Message message)
      • hasAnyDocumentRequiringEncryption

        public boolean hasAnyDocumentRequiringEncryption()
      • getChannel

        public Channel getChannel()
      • documentOrder

        public Comparator<? super Document> documentOrder()
        Returns:
        Comparator which order documents by the same order as they are contained in this message. If a document