Class Document

    • Field Detail

      • uuid

        public final java.util.UUID uuid
      • subject

        public final java.lang.String subject
      • digipostFileType

        protected java.lang.String digipostFileType
      • opened

        protected java.lang.Boolean opened
      • openingReceipt

        public final java.lang.String openingReceipt
    • Constructor Detail

      • Document

        public Document()
      • Document

        public Document​(java.util.UUID uuid,
                        java.lang.String subject,
                        FileType fileType)
        Constructor for just the required fields of a document.
      • Document

        public Document​(java.util.UUID uuid,
                        java.lang.String subject,
                        FileType fileType,
                        no.digipost.api.datatypes.DataType data)
      • Document

        public Document​(java.util.UUID uuid,
                        java.lang.String subject,
                        FileType fileType,
                        java.lang.String openingReceipt,
                        SmsNotification smsNotification,
                        EmailNotification emailNotification,
                        AuthenticationLevel authenticationLevel,
                        SensitivityLevel sensitivityLevel,
                        java.lang.Boolean opened,
                        no.digipost.api.datatypes.DataType data,
                        java.lang.String... technicalType)
    • Method Detail

      • getLinks

        protected java.util.List<Link> getLinks()
      • copyDocumentAndSetDigipostFileTypeToPdf

        public Document copyDocumentAndSetDigipostFileTypeToPdf()
      • technicalAttachment

        public static Document technicalAttachment​(FileType fileType,
                                                   java.lang.String... type)
      • setContentHash

        public void setContentHash​(ContentHash contentHash)
      • setDigipostFileType

        public void setDigipostFileType​(FileType fileType)
      • getDigipostFileType

        public java.lang.String getDigipostFileType()
      • is

        public boolean is​(FileType fileType)
      • willBeEncrypted

        public boolean willBeEncrypted()
      • getAddContentLink

        public Link getAddContentLink()
      • getEncryptionKeyLink

        public Link getEncryptionKeyLink()
      • getTechnicalType

        public java.lang.String[] getTechnicalType()
      • isOpened

        public boolean isOpened()
      • getDataType

        public java.util.Optional<no.digipost.api.datatypes.DataType> getDataType()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setNumberOfEncryptedPages

        public void setNumberOfEncryptedPages​(int pages)