Class PictureViewsGenerationWork

java.lang.Object
org.nuxeo.ecm.core.work.AbstractWork
org.nuxeo.ecm.platform.picture.PictureViewsGenerationWork
All Implemented Interfaces:
Serializable, Work

@Deprecated(since="11.1") public class PictureViewsGenerationWork extends AbstractWork
Deprecated.
since 11.1 use RecomputeViewsAction instead
Work generating the different picture views for a Picture.
Since:
5.7
See Also:
  • Field Details

    • CATEGORY_PICTURE_GENERATION

      public static final String CATEGORY_PICTURE_GENERATION
      Deprecated.
      See Also:
    • PICTURE_VIEWS_GENERATION_DONE_EVENT

      public static final String PICTURE_VIEWS_GENERATION_DONE_EVENT
      Deprecated.
      See Also:
    • xpath

      protected final String xpath
      Deprecated.
  • Constructor Details

    • PictureViewsGenerationWork

      public PictureViewsGenerationWork(String repositoryName, String docId, String xpath)
      Deprecated.
  • Method Details

    • getCategory

      public String getCategory()
      Deprecated.
      Description copied from interface: Work
      Gets the category for this work.

      Used to choose an execution queue.

      Specified by:
      getCategory in interface Work
      Overrides:
      getCategory in class AbstractWork
      Returns:
      the category, or null for the default
    • getTitle

      public String getTitle()
      Deprecated.
      Description copied from interface: Work
      Gets a human-readable name for this work instance.
      Returns:
      a human-readable name
    • getRetryCount

      public int getRetryCount()
      Deprecated.
      Description copied from class: AbstractWork
      Gets the number of times that this Work instance can be retried in case of concurrent update exceptions.
      Overrides:
      getRetryCount in class AbstractWork
      Returns:
      0 for no retry, or more if some retries are possible
      See Also:
    • isIdempotent

      public boolean isIdempotent()
      Deprecated.
      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.
    • isGroupJoin

      public boolean isGroupJoin()
      Deprecated.
      Description copied from interface: Work
      When true the Work is part of a group, Works of the group have the same Work.getPartitionKey(). When all Works of the group are done the Work.onGroupJoinCompletion() hook is called.
    • getPartitionKey

      public String getPartitionKey()
      Deprecated.
      Description copied from interface: Work
      Returns a key that can be used by the WorkManager implementation to guarantee that works with the same partition key will be executed in the order they are submitted.
      Specified by:
      getPartitionKey in interface Work
      Overrides:
      getPartitionKey in class AbstractWork
    • onGroupJoinCompletion

      public void onGroupJoinCompletion()
      Deprecated.
      Description copied from interface: Work
      Called when Work.isGroupJoin() returns true and after the last Work of the group.
    • work

      public void work()
      Deprecated.
      Description copied from interface: Work
      This method should implement the actual work done by the Work instance.

      It should periodically update its progress through Work.setProgress(org.nuxeo.ecm.core.work.api.Work.Progress).

      To allow for suspension by the WorkManager, it should periodically call Work.isSuspending(), and if true call Work.suspended() return early with saved state data.

      Clean up can by implemented by Work.cleanUp(boolean, Exception).

      Specified by:
      work in interface Work
      Specified by:
      work in class AbstractWork
      See Also:
    • firePictureViewsGenerationDoneEvent

      protected void firePictureViewsGenerationDoneEvent(DocumentModel doc)
      Deprecated.
      Fire a PICTURE_VIEWS_GENERATION_DONE_EVENT
      Since:
      5.8