Class TransientStoreWork

java.lang.Object
org.nuxeo.ecm.core.work.AbstractWork
org.nuxeo.ecm.core.transientstore.work.TransientStoreWork
All Implemented Interfaces:
Serializable, Work
Direct Known Subclasses:
AbstractRenditionBuilderWork, BlobListZipWork, ConversionWork, CSVImporterWork, PermissionsPurgeWork

public abstract class TransientStoreWork extends AbstractWork
A work allowing to store a result in the TransientStore.
Since:
7.4
See Also:
  • Field Details

  • Constructor Details

    • TransientStoreWork

      public TransientStoreWork()
    • TransientStoreWork

      public TransientStoreWork(String id)
  • Method Details

    • computeEntryKey

      public static String computeEntryKey(String id)
      Since:
      8.4
    • putBlobHolder

      public static void putBlobHolder(String key, BlobHolder bh)
      Stores the given BlobHolder as an entry with the given key in the transient store used by the TransientStoreWork.
    • getBlobHolder

      public static BlobHolder getBlobHolder(String key)
      Returns a BlobHolder representing the entry with the given key in the transient store used by the TransientStoreWork or null if the entry doesn't exist.
    • containsBlobHolder

      public static boolean containsBlobHolder(String key)
      Returns true if a BlobHolder is stored for the given key.
      Since:
      8.3
    • removeBlobHolder

      public static void removeBlobHolder(String key)
    • getStore

      protected static TransientStore getStore()
    • computeEntryKey

      protected void computeEntryKey()
    • putBlobHolder

      protected void putBlobHolder(BlobHolder bh)
    • getEntryKey

      public String getEntryKey()
    • isIdempotent

      public boolean isIdempotent()
      Description copied from interface: Work
      Returns true if a work with a given Work.getId() should always produce the same result. The WorkManager implementation can safely skip duplicate executions of idempotent work.