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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected StringcomputeDigest(BlobStore blobStore) static intGets the transaction timeout in second.static voidCommits and starts a new transaction with a custom timeout.protected voidreplaceDigest(String repositoryName) protected voidreplaceDigest(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
-