Package org.nuxeo.ecm.platform.picture
Class PictureViewsHelper
java.lang.Object
org.nuxeo.ecm.platform.picture.PictureViewsHelper
Helper to compute the picture views of a document.
- Since:
- 11.5
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
computePictureViews
(CoreSession session, String id, String xpath, Consumer<String> statusSetter) Computes the picture views of the document with the givenid
and property with the givenxpath
.int
boolean
void
Commits and starts a new transaction with a custom timeout.
-
Field Details
-
PICTURE_VIEWS_TX_TIMEOUT_PROPERTY
- See Also:
-
DEFAULT_TX_TIMEOUT_SECONDS
public static final int DEFAULT_TX_TIMEOUT_SECONDS- See Also:
-
DEFAULT_PICTURE_VIEW_PATH
- See Also:
-
EMPTY_PICTURE_VIEW_PATH
- See Also:
-
NOTHING_TO_PROCESS_MESSAGE
- See Also:
-
transactionTimeout
-
-
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 givenid
and property with the givenxpath
.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
- Since:
- 2021.27
-
hasPrefillPictureViews
- Since:
- 2021.27
-