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 boolean
ongoingRestore
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.boolean
isOngoingRestore()
BlobStatus
withDownloadable(boolean downloadable)
BlobStatus
withDownloadableUntil(Instant downloadableUntil)
BlobStatus
withOngoingRestore(boolean ongoingRestore)
BlobStatus
withStorageClass(String storageClass)
-
-
-
Method Detail
-
withStorageClass
public BlobStatus withStorageClass(String storageClass)
-
withDownloadable
public BlobStatus withDownloadable(boolean downloadable)
-
withDownloadableUntil
public BlobStatus withDownloadableUntil(Instant downloadableUntil)
-
withOngoingRestore
public BlobStatus withOngoingRestore(boolean ongoingRestore)
-
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.
-
isOngoingRestore
public boolean isOngoingRestore()
-
-