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 List<ArchiveDocumentAttribute>
attributes
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
getAddUniqueUUID()
ZonedDateTime
getArchivedTime()
List<ArchiveDocumentAttribute>
getAttributes()
ContentHash
getContentHash()
String
getContentType()
URI
getDelete()
ZonedDateTime
getDeletionTime()
URI
getDocumentByUUID()
URI
getDocumentContent()
URI
getDocumentContentStream()
String
getFileName()
String
getFileType()
List<Link>
getLinks()
String
getReferenceid()
URI
getUpdate()
UUID
getUuid()
void
setContentHash(ContentHash value)
String
toString()
ArchiveDocument
withAttribute(String key, String value)
ArchiveDocument
withAttributes(Map<String,String> attributes)
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
-
attributes
protected List<ArchiveDocumentAttribute> attributes
-
archivedTime
protected ZonedDateTime archivedTime
-
deletionTime
protected ZonedDateTime deletionTime
-
-
Method Detail
-
withAttribute
public ArchiveDocument withAttribute(String key, String value)
-
withAttributes
public ArchiveDocument withAttributes(Map<String,String> attributes)
-
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)
-
getAttributes
public List<ArchiveDocumentAttribute> getAttributes()
-
getArchivedTime
public ZonedDateTime getArchivedTime()
-
getDeletionTime
public ZonedDateTime getDeletionTime()
-
getDocumentByUUID
public URI getDocumentByUUID()
-
getDocumentContent
public URI getDocumentContent()
-
getUpdate
public URI getUpdate()
-
getDelete
public URI getDelete()
-
getAddUniqueUUID
public URI getAddUniqueUUID()
-
getDocumentContentStream
public URI getDocumentContentStream()
-
-