Package org.nuxeo.ecm.core.blob
Class BlobProviderDescriptor
java.lang.Object
org.nuxeo.ecm.core.blob.BlobProviderDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor for a
BlobProvider
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Flags this blob provider as allowing internal queries with keys containing a byte range.static final String
Flags this blob provider as using "cold storage mode".static final String
A comma-separated list of groups that can create blobs in this blob provider based only on a key.static final String
A comma-separated list of users that can create blobs in this blob provider based only on a key.static final String
Expiration duration of a direct download link (seeDIRECTDOWNLOAD_PROPERTY
) in seconds.static final String
Flags this blob provider as allowing direct download withURI
returned byBlobProvider.getURI(ManagedBlob, org.nuxeo.ecm.core.blob.BlobManager.UsageHint, jakarta.servlet.http.HttpServletRequest)
.Class
<?> static final String
An optional namespace that may be used to disambiguate otherwise similar descriptors (in particular, copies).static final String
static final String
Flags this blob provider as using "record mode".static final String
Flags this blob provider as transactional.static final String
Flags this blob provider as transient: blobs may disappear after a while, so a caller should not rely on them being available forever.Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The descriptor id, descriptors with same id are merged.merge
(Descriptor o) Returns a descriptor representingother
merged intothis
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
PREVENT_USER_UPDATE
- See Also:
-
NAMESPACE
An optional namespace that may be used to disambiguate otherwise similar descriptors (in particular, copies).- Since:
- 10.10
- See Also:
-
TRANSIENT
Flags this blob provider as transient: blobs may disappear after a while, so a caller should not rely on them being available forever.- Since:
- 10.1
- See Also:
-
COLD_STORAGE
Flags this blob provider as using "cold storage mode".Cold storage mode has the following characteristics:
- transactional (blobs aren't actually written/deleted until the transaction commits, and transaction rollback is possible)
- Since:
- 2021.19
- See Also:
-
RECORD
Flags this blob provider as using "record mode".Record mode has the following characteristics:
- transactional (blobs aren't actually written/deleted until the transaction commits, and transaction rollback is possible),
- can replace or delete a document's blob.
- Since:
- 11.1
- See Also:
-
TRANSACTIONAL
Flags this blob provider as transactional.A transactional blob provider only writes blobs to final storage at commit time.
- Since:
- 11.1
- See Also:
-
ALLOW_BYTE_RANGE
Flags this blob provider as allowing internal queries with keys containing a byte range.- Since:
- 11.1
- See Also:
-
DIRECTDOWNLOAD_PROPERTY
Flags this blob provider as allowing direct download withURI
returned byBlobProvider.getURI(ManagedBlob, org.nuxeo.ecm.core.blob.BlobManager.UsageHint, jakarta.servlet.http.HttpServletRequest)
.- Since:
- 2023.7
- See Also:
-
DIRECTDOWNLOAD_EXPIRE_PROPERTY
Expiration duration of a direct download link (seeDIRECTDOWNLOAD_PROPERTY
) in seconds.- Since:
- 2023.7
- See Also:
-
CREATE_FROM_KEY_USERS
A comma-separated list of users that can create blobs in this blob provider based only on a key.- Since:
- 10.2
- See Also:
-
CREATE_FROM_KEY_GROUPS
A comma-separated list of groups that can create blobs in this blob provider based only on a key.- Since:
- 10.2
- See Also:
-
name
-
klass
-
properties
-
-
Constructor Details
-
BlobProviderDescriptor
public BlobProviderDescriptor() -
BlobProviderDescriptor
Copy constructor.
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-