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 ZonedDateTimearchivedTimeprotected ContentHashcontentHashprotected StringcontentTypeprotected ZonedDateTimedeletionTimeprotected StringfileNameprotected StringfileTypeprotected StringreferenceidUUIDuuid-
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 URIdeleteArchiveDocumentUri()URIgetAddUniqueUUID()ZonedDateTimegetArchivedTime()ContentHashgetContentHash()StringgetContentType()ZonedDateTimegetDeletionTime()URIgetDocumentByUUID()URIgetDocumentContent()URIgetDocumentContentStream()StringgetFileName()StringgetFileType()List<Link>getLinks()StringgetReferenceid()UUIDgetUuid()voidsetContentHash(ContentHash value)StringtoString()ArchiveDocumentwithDeleteAfter(Period duration, Clock clock)ArchiveDocumentwithDeletionTime(ZonedDateTime deletionTime)ArchiveDocumentwithReferenceId(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()
-
-