Package org.nuxeo.ecm.core.blob
Class KeyStrategyManaged
java.lang.Object
org.nuxeo.ecm.core.blob.KeyStrategyManaged
- All Implemented Interfaces:
KeyStrategy
Represents trusted managed blob key computation with a fallback
KeyStrategy
- Since:
- 11.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.blob.KeyStrategy
KeyStrategy.WriteObserver
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.core.blob.KeyStrategy
VER_SEP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBlobWriteContext
(BlobContext blobContext) Gets the write context for the given blob.getDigestFromKey
(String key) Gets, if possible, a digest from the key.int
hashCode()
boolean
Checks whether this key strategy uses de-duplication.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.blob.KeyStrategy
isValidKey
-
Field Details
-
strategy
-
-
Constructor Details
-
KeyStrategyManaged
-
-
Method Details
-
useDeDuplication
public boolean useDeDuplication()Description copied from interface:KeyStrategy
Checks whether this key strategy uses de-duplication. When de-duplication is used, two blobs with identical contents have identical keys.- Specified by:
useDeDuplication
in interfaceKeyStrategy
-
getDigestFromKey
Description copied from interface:KeyStrategy
Gets, if possible, a digest from the key. This is not possible if the key is not derived from a digest.- Specified by:
getDigestFromKey
in interfaceKeyStrategy
- Parameters:
key
- the key- Returns:
- a digest, or
null
-
getBlobWriteContext
Description copied from interface:KeyStrategy
Gets the write context for the given blob.- Specified by:
getBlobWriteContext
in interfaceKeyStrategy
-
equals
-
hashCode
public int hashCode()
-