Class DownloadBlobGuard

java.lang.Object
org.nuxeo.ecm.core.api.impl.DownloadBlobGuard

public class DownloadBlobGuard extends Object
A Guard to avoid the current thread within a transaction to download the main blob in the following cases: - when loading a document with a content/length property that is unset - when saving a document the previous version is loaded with the blob if content/length is unset - when performing a fulltext extractor job because content/length has been updated The Guard is removed on transaction commit or rollback. This Guard works only on DBS repository implementation.
Since:
2021.8
  • Field Details

  • Constructor Details

    • DownloadBlobGuard

      public DownloadBlobGuard()
  • Method Details

    • isEnable

      public static boolean isEnable()
      Is the guard enabled?
    • enable

      public static void enable()
      Enables the guard
    • disable

      public static void disable()
      Disables the guard