public class Document extends Representation
Modifier and Type | Field and Description |
---|---|
AuthenticationLevel |
authenticationLevel |
protected ContentHash |
contentHash |
protected DataTypeHolder |
dataType |
protected String |
digipostFileType |
EmailNotification |
emailNotification |
protected EncryptionInfo |
encrypted |
protected Boolean |
opened |
String |
openingReceipt |
SensitivityLevel |
sensitivityLevel |
SmsNotification |
smsNotification |
String |
subject |
UUID |
uuid |
links
Constructor and Description |
---|
Document() |
Document(UUID uuid,
String subject,
FileType fileType)
Constructor for just the required fields of a document.
|
Document(UUID uuid,
String subject,
FileType fileType,
no.digipost.api.datatypes.DataType data) |
Document(UUID uuid,
String subject,
FileType fileType,
String openingReceipt,
SmsNotification smsNotification,
EmailNotification emailNotification,
AuthenticationLevel authenticationLevel,
SensitivityLevel sensitivityLevel) |
Document(UUID uuid,
String subject,
FileType fileType,
String openingReceipt,
SmsNotification smsNotification,
EmailNotification emailNotification,
AuthenticationLevel authenticationLevel,
SensitivityLevel sensitivityLevel,
Boolean opened,
no.digipost.api.datatypes.DataType data,
String... technicalType) |
Modifier and Type | Method and Description |
---|---|
Document |
copyDocumentAndSetDigipostFileTypeToPdf() |
Document |
encrypt() |
Link |
getAddContentLink() |
AddDataLink |
getAddDataLink() |
Optional<no.digipost.api.datatypes.DataType> |
getDataType() |
String |
getDigipostFileType() |
EncryptionInfo |
getEncrypted() |
Link |
getEncryptionKeyLink() |
protected List<Link> |
getLinks() |
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,
String... type) |
String |
toString() |
boolean |
willBeEncrypted() |
addLink, getLinkByRelationName
public final UUID uuid
public final String subject
protected String digipostFileType
protected Boolean opened
public final String openingReceipt
public final SmsNotification smsNotification
public final EmailNotification emailNotification
public final AuthenticationLevel authenticationLevel
public final SensitivityLevel sensitivityLevel
protected EncryptionInfo encrypted
protected ContentHash contentHash
protected DataTypeHolder dataType
public Document()
public Document(UUID uuid, String subject, FileType fileType)
public Document(UUID uuid, String subject, FileType fileType, no.digipost.api.datatypes.DataType data)
public Document(UUID uuid, String subject, FileType fileType, String openingReceipt, SmsNotification smsNotification, EmailNotification emailNotification, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
public Document(UUID uuid, String subject, FileType fileType, String openingReceipt, SmsNotification smsNotification, EmailNotification emailNotification, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel, Boolean opened, no.digipost.api.datatypes.DataType data, String... technicalType)
public Document copyDocumentAndSetDigipostFileTypeToPdf()
public void setContentHash(ContentHash contentHash)
public void setDigipostFileType(FileType fileType)
public String getDigipostFileType()
public boolean is(FileType fileType)
public Document encrypt()
public boolean willBeEncrypted()
public EncryptionInfo getEncrypted()
public Link getAddContentLink()
public AddDataLink getAddDataLink()
public Link getEncryptionKeyLink()
public String[] getTechnicalType()
public boolean isOpened()
public Optional<no.digipost.api.datatypes.DataType> getDataType()
public void setNumberOfEncryptedPages(int pages)
Copyright © 2019 Digipost. All rights reserved.