Class ArchiveDocument
- java.lang.Object
-
- no.digipost.api.client.representations.Representation
-
- no.digipost.api.client.representations.archive.ArchiveDocument
-
public class ArchiveDocument extends Representation
-
-
Field Summary
Fields Modifier and Type Field Description protected ZonedDateTime
archivedTime
protected ContentHash
contentHash
protected String
contentType
protected ZonedDateTime
deletionTime
protected String
fileName
protected String
fileType
protected String
referenceid
UUID
uuid
-
Fields inherited from class no.digipost.api.client.representations.Representation
links
-
-
Constructor Summary
Constructors Constructor Description ArchiveDocument()
ArchiveDocument(UUID uuid, String fileName, String fileType, String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
deleteArchiveDocumentUri()
URI
getAddUniqueUUID()
ZonedDateTime
getArchivedTime()
ContentHash
getContentHash()
String
getContentType()
ZonedDateTime
getDeletionTime()
URI
getDocumentByUUID()
URI
getDocumentContent()
URI
getDocumentContentStream()
String
getFileName()
String
getFileType()
List<Link>
getLinks()
String
getReferenceid()
UUID
getUuid()
void
setContentHash(ContentHash value)
String
toString()
ArchiveDocument
withDeleteAfter(Period duration, Clock clock)
ArchiveDocument
withDeletionTime(ZonedDateTime deletionTime)
ArchiveDocument
withReferenceId(String referenceid)
-
Methods inherited from class no.digipost.api.client.representations.Representation
addLink, getLinkByRelationName
-
-
-
-
Field Detail
-
uuid
public final UUID uuid
-
fileName
protected String fileName
-
fileType
protected String fileType
-
referenceid
protected String referenceid
-
contentType
protected String contentType
-
contentHash
protected ContentHash contentHash
-
archivedTime
protected ZonedDateTime archivedTime
-
deletionTime
protected ZonedDateTime deletionTime
-
-
Method Detail
-
withReferenceId
public ArchiveDocument withReferenceId(String referenceid)
-
withDeletionTime
public ArchiveDocument withDeletionTime(ZonedDateTime deletionTime)
-
withDeleteAfter
public ArchiveDocument withDeleteAfter(Period duration, Clock clock)
-
getUuid
public UUID getUuid()
-
getFileName
public String getFileName()
-
getFileType
public String getFileType()
-
getReferenceid
public String getReferenceid()
-
getContentType
public String getContentType()
-
getContentHash
public ContentHash getContentHash()
-
setContentHash
public void setContentHash(ContentHash value)
-
getArchivedTime
public ZonedDateTime getArchivedTime()
-
getDeletionTime
public ZonedDateTime getDeletionTime()
-
getDocumentByUUID
public URI getDocumentByUUID()
-
getDocumentContent
public URI getDocumentContent()
-
getAddUniqueUUID
public URI getAddUniqueUUID()
-
getDocumentContentStream
public URI getDocumentContentStream()
-
deleteArchiveDocumentUri
public URI deleteArchiveDocumentUri()
-
-