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 Details

    • DIGEST_TX_TIMEOUT_PROPERTY

      protected static final String DIGEST_TX_TIMEOUT_PROPERTY
      See Also:
    • DEFAULT_TX_TIMEOUT_SECONDS

      protected static final int DEFAULT_TX_TIMEOUT_SECONDS
      See Also:
    • blobProviderId

      public final String blobProviderId
    • key

      public final String key
    • newKey

      public String newKey
    • digest

      public String digest
  • Constructor Details

    • ComputeDigestHelper

      public ComputeDigestHelper(String blobProviderId, String key)
  • Method Details

    • computeAndReplaceDigest

      public void computeAndReplaceDigest()
    • computeDigest

      protected String computeDigest(BlobStore blobStore)
    • 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