Class Document
- java.lang.Object
-
- no.digipost.api.client.representations.Representation
-
- no.digipost.api.client.representations.Document
-
- Direct Known Subclasses:
Invoice
public class Document extends Representation
-
-
Field Summary
Fields Modifier and Type Field Description AuthenticationLevel
authenticationLevel
protected ContentHash
contentHash
protected DataTypeHolder
dataType
protected java.lang.String
digipostFileType
EmailNotification
emailNotification
protected EncryptionInfo
encrypted
protected java.lang.Boolean
opened
java.lang.String
openingReceipt
SensitivityLevel
sensitivityLevel
SmsNotification
smsNotification
java.lang.String
subject
java.util.UUID
uuid
-
Fields inherited from class no.digipost.api.client.representations.Representation
links
-
-
Constructor Summary
Constructors Constructor Description Document()
Document(java.util.UUID uuid, java.lang.String subject, FileType fileType)
Constructor for just the required fields of a document.Document(java.util.UUID uuid, java.lang.String subject, FileType fileType, java.lang.String openingReceipt, SmsNotification smsNotification, EmailNotification emailNotification, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
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)
Document(java.util.UUID uuid, java.lang.String subject, FileType fileType, no.digipost.api.datatypes.DataType data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
copyDocumentAndSetDigipostFileTypeToPdf()
Document
encrypt()
Link
getAddContentLink()
AddDataLink
getAddDataLink()
java.util.Optional<no.digipost.api.datatypes.DataType>
getDataType()
java.lang.String
getDigipostFileType()
EncryptionInfo
getEncrypted()
Link
getEncryptionKeyLink()
protected java.util.List<Link>
getLinks()
java.lang.String[]
getTechnicalType()
boolean
is(FileType fileType)
boolean
isOpened()
void
setContentHash(ContentHash contentHash)
void
setDigipostFileType(FileType fileType)
void
setNumberOfEncryptedPages(int pages)
static Document
technicalAttachment(FileType fileType, java.lang.String... type)
java.lang.String
toString()
boolean
willBeEncrypted()
-
Methods inherited from class no.digipost.api.client.representations.Representation
addLink, getLinkByRelationName
-
-
-
-
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
-
smsNotification
public final SmsNotification smsNotification
-
emailNotification
public final EmailNotification emailNotification
-
authenticationLevel
public final AuthenticationLevel authenticationLevel
-
sensitivityLevel
public final SensitivityLevel sensitivityLevel
-
encrypted
protected EncryptionInfo encrypted
-
contentHash
protected ContentHash contentHash
-
dataType
protected DataTypeHolder dataType
-
-
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)
-
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)
-
encrypt
public Document encrypt()
-
willBeEncrypted
public boolean willBeEncrypted()
-
getEncrypted
public EncryptionInfo getEncrypted()
-
getAddContentLink
public Link getAddContentLink()
-
getAddDataLink
public AddDataLink getAddDataLink()
-
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 classjava.lang.Object
-
setNumberOfEncryptedPages
public void setNumberOfEncryptedPages(int pages)
-
-