Package org.nuxeo.ecm.core.blob
Class ComputeDigestHelper
java.lang.Object
org.nuxeo.ecm.core.blob.ComputeDigestHelper
Helper class to compute and replace a blob digest.
- Since:
- 11.5
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
computeDigest
(BlobStore blobStore) static int
Gets the transaction timeout in second.static void
Commits and starts a new transaction with a custom timeout.protected void
replaceDigest
(String repositoryName) protected void
replaceDigest
(CoreSession session) protected void
-
Field Details
-
DIGEST_TX_TIMEOUT_PROPERTY
- See Also:
-
DEFAULT_TX_TIMEOUT_SECONDS
protected static final int DEFAULT_TX_TIMEOUT_SECONDS- See Also:
-
blobProviderId
-
key
-
newKey
-
digest
-
-
Constructor Details
-
ComputeDigestHelper
-
-
Method Details
-
computeAndReplaceDigest
public void computeAndReplaceDigest() -
computeDigest
-
replaceDigestAllRepositories
protected void replaceDigestAllRepositories() -
replaceDigest
-
replaceDigest
-
newTransaction
public static void newTransaction()Commits and starts a new transaction with a custom timeout.- Since:
- 2023.12
-
getTransactionTimeout
public static int getTransactionTimeout()Gets the transaction timeout in second.- Since:
- 2023.12
-