public class PictureViewsGenerationWork extends AbstractWork
Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_PICTURE_GENERATION |
Constructor and Description |
---|
PictureViewsGenerationWork(String repositoryName,
DocumentRef docRef,
String xpath) |
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Gets the category for this work.
|
String |
getTitle()
Gets a human-readable name for this work instance.
|
void |
work()
This method should implement the actual work done by the
Work
instance. |
afterRun, awaitTermination, beforeRun, cleanUp, getCompletionTime, getData, getDocuments, getPrincipal, getProgress, getSchedulingTime, getStartTime, getState, getStatus, initSession, run, setCanceled, setData, suspend, toString
public static final String CATEGORY_PICTURE_GENERATION
public PictureViewsGenerationWork(String repositoryName, DocumentRef docRef, String xpath)
public String getCategory()
Work
Used to choose a thread pool queue.
getCategory
in interface Work
getCategory
in class AbstractWork
null
for the defaultpublic String getTitle()
Work
public void work() throws Exception
AbstractWork
Work
instance.
It should periodically call #setProgress()
to report its
progress.
To allow for suspension by the WorkManager
, it should
periodically call AbstractWork.isSuspending()
, and if true call
#suspended()
with saved state data and return early.
work
in class AbstractWork
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.