Package org.nuxeo.ecm.core.blob
Class BlobStatus
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.BlobStatus
-
public class BlobStatus extends Object
Status associated to a blob in storage.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
downloadable
protected Instant
downloadableUntil
protected String
storageClass
-
Constructor Summary
Constructors Constructor Description BlobStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getDownloadableUntil()
If the blob can be download for a limited time, until when.String
getStorageClass()
The storage class, ornull
for the standard storage class.boolean
isDownloadable()
Whether the blob can be immediately downloaded.BlobStatus
withDownloadable(boolean downloadable)
BlobStatus
withDownloadableUntil(Instant downloadableUntil)
BlobStatus
withStorageClass(String storageClass)
-
-
-
Field Detail
-
storageClass
protected String storageClass
-
downloadable
protected boolean downloadable
-
downloadableUntil
protected Instant downloadableUntil
-
-
Constructor Detail
-
BlobStatus
public BlobStatus()
-
-
Method Detail
-
withStorageClass
public BlobStatus withStorageClass(String storageClass)
-
withDownloadable
public BlobStatus withDownloadable(boolean downloadable)
-
withDownloadableUntil
public BlobStatus withDownloadableUntil(Instant downloadableUntil)
-
getStorageClass
public String getStorageClass()
The storage class, ornull
for the standard storage class.
-
isDownloadable
public boolean isDownloadable()
Whether the blob can be immediately downloaded.
-
getDownloadableUntil
public Instant getDownloadableUntil()
If the blob can be download for a limited time, until when.Returns
null
if the blob is always downloadable, or is not immediately downloadable.
-
-