Package org.nuxeo.ecm.core.blob
Class ComputeDigestHelper
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.ComputeDigestHelper
-
public class ComputeDigestHelper extends Object
Helper class to compute and replace a blob digest.- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description String
blobProviderId
protected static int
DEFAULT_TX_TIMEOUT_SECONDS
String
digest
protected static String
DIGEST_TX_TIMEOUT_PROPERTY
String
key
String
newKey
-
Constructor Summary
Constructors Constructor Description ComputeDigestHelper(String blobProviderId, String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeAndReplaceDigest()
protected String
computeDigest(BlobStore blobStore)
static int
getTransactionTimeout()
Gets the transaction timeout in second.static void
newTransaction()
Commits and starts a new transaction with a custom timeout.protected void
replaceDigest(String repositoryName)
protected void
replaceDigest(CoreSession session)
protected void
replaceDigestAllRepositories()
-
-
-
Field Detail
-
DIGEST_TX_TIMEOUT_PROPERTY
protected static final String DIGEST_TX_TIMEOUT_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_TX_TIMEOUT_SECONDS
protected static final int DEFAULT_TX_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
blobProviderId
public final String blobProviderId
-
key
public final String key
-
newKey
public String newKey
-
digest
public String digest
-
-
Method Detail
-
computeAndReplaceDigest
public void computeAndReplaceDigest()
-
replaceDigestAllRepositories
protected void replaceDigestAllRepositories()
-
replaceDigest
protected void replaceDigest(String repositoryName)
-
replaceDigest
protected void replaceDigest(CoreSession session)
-
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
-
-