Class PictureViewsHelper

java.lang.Object
org.nuxeo.ecm.platform.picture.PictureViewsHelper

public class PictureViewsHelper extends Object
Helper to compute the picture views of a document.
Since:
11.5
  • Field Details

  • Constructor Details

    • PictureViewsHelper

      public PictureViewsHelper()
  • Method Details

    • computePictureViews

      public void computePictureViews(CoreSession session, String id, String xpath, Consumer<String> statusSetter)
      Computes the picture views of the document with the given id and property with the given xpath.

      Uses the given statusSetter to eventually set a status at the different stages of the computation.

    • newTransaction

      public void newTransaction()
      Commits and starts a new transaction with a custom timeout.
    • getTransactionTimeout

      public int getTransactionTimeout()
    • getEmptyPicturePath

      public Path getEmptyPicturePath()
      Since:
      2021.27
    • hasPrefillPictureViews

      public boolean hasPrefillPictureViews(DocumentModel doc)
      Since:
      2021.27