Class RecomputeViewsAction.RecomputeViewsComputation
- java.lang.Object
-
- org.nuxeo.lib.stream.computation.AbstractComputation
-
- org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
-
- org.nuxeo.ecm.platform.picture.recompute.RecomputeViewsAction.RecomputeViewsComputation
-
- All Implemented Interfaces:
Computation
- Enclosing class:
- RecomputeViewsAction
public static class RecomputeViewsAction.RecomputeViewsComputation extends AbstractBulkComputation
-
-
Field Summary
Fields Modifier and Type Field Description protected String
lastPictureViewsStatus
static String
PICTURE_VIEWS_GENERATION_DONE_EVENT
protected PictureViewsHelper
pictureViewsHelper
protected String
xpath
-
Fields inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
command, commands, delta, SELECT_DOCUMENTS_IN
-
Fields inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
INPUT_1, INPUT_2, INPUT_3, INPUT_NULL, metadata, OUTPUT_1, OUTPUT_2, OUTPUT_3, OUTPUT_4
-
-
Constructor Summary
Constructors Constructor Description RecomputeViewsComputation()
RecomputeViewsComputation(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compute(CoreSession session, List<String> ids, Map<String,Serializable> properties)
protected void
fireEvent(CoreSession session, DocumentModel document, String eventName)
protected String
getLastPictureViewsStatus()
protected void
setLastPictureViewsStatus(String status)
void
startBucket(String bucketKey)
Can be overridden to init stuff before processing the bucket-
Methods inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
endBucket, getBatchTransactionTimeout, getCommand, getCurrentCommand, isAbortedCommand, loadDocuments, loadDocumentsOneByOne, loginSystemOrUser, processBatchOfDocuments, processFailure, processRecord, updateStatus
-
Methods inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
init, metadata, processRetry, processTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.lib.stream.computation.Computation
destroy, signalStop
-
-
-
-
Field Detail
-
PICTURE_VIEWS_GENERATION_DONE_EVENT
public static final String PICTURE_VIEWS_GENERATION_DONE_EVENT
- See Also:
- Constant Field Values
-
pictureViewsHelper
protected PictureViewsHelper pictureViewsHelper
- Since:
- 11.5
-
xpath
protected String xpath
-
lastPictureViewsStatus
protected String lastPictureViewsStatus
-
-
Constructor Detail
-
RecomputeViewsComputation
public RecomputeViewsComputation(String name)
-
RecomputeViewsComputation
public RecomputeViewsComputation()
-
-
Method Detail
-
startBucket
public void startBucket(String bucketKey)
Description copied from class:AbstractBulkComputation
Can be overridden to init stuff before processing the bucket- Overrides:
startBucket
in classAbstractBulkComputation
-
compute
protected void compute(CoreSession session, List<String> ids, Map<String,Serializable> properties)
- Specified by:
compute
in classAbstractBulkComputation
-
setLastPictureViewsStatus
protected void setLastPictureViewsStatus(String status)
-
getLastPictureViewsStatus
protected String getLastPictureViewsStatus()
-
fireEvent
protected void fireEvent(CoreSession session, DocumentModel document, String eventName)
- Since:
- 11.5
-
-