public abstract class AbstractRunner
extends fr.toutatice.ecm.platform.core.helper.ToutaticeSilentProcessRunnerHelper
| Modifier and Type | Field and Description |
|---|---|
protected static List<String> |
docsOnError
Documents on error.
|
static String |
EMPTY_ID_FILTER
Empty id filter
|
static List<Class<?>> |
FILTERED_SERVICES_LIST
Silent services.
|
static String |
FIXED_CLAUSE
Default filter
|
protected org.nuxeo.ecm.core.api.DocumentModelList |
inputs
Documents to treat.
|
static String |
MIGRATION_DONE
Done migration status.
|
protected String |
mode
Batch mode: analyze or execute.
|
protected String |
params
Param.
|
protected org.nuxeo.ecm.core.api.IterableQueryResult |
results
Rows to treat.
|
protected int |
totalInputs |
protected int |
treatedInputs |
| Constructor and Description |
|---|
AbstractRunner(org.nuxeo.ecm.core.api.CoreSession session) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getDocsOnError()
Getter for docs on error.
|
String |
getMode() |
int |
getTotalInputs() |
int |
getTreatedInputs() |
protected org.nuxeo.ecm.core.api.DocumentModelList |
removeDocsWithError(org.nuxeo.ecm.core.api.DocumentModelList inputs)
Remove documents with errors from inputs.
|
static void |
resetDocsOnerror()
Reset docs on errors.
|
abstract void |
run() |
void |
runSilentlyInTx(boolean unrestricted)
Executes runner in one transaction.
|
abstract int |
setInputs(int limit)
Setter for documents to treat.
|
void |
setMode(String mode) |
void |
setParams(String params)
Setter for param.
|
silentRun, silentRunpublic static final String MIGRATION_DONE
public static final String FIXED_CLAUSE
public static final String EMPTY_ID_FILTER
protected String mode
protected org.nuxeo.ecm.core.api.DocumentModelList inputs
protected org.nuxeo.ecm.core.api.IterableQueryResult results
protected String params
protected int totalInputs
protected int treatedInputs
public int getTotalInputs()
public int getTreatedInputs()
public abstract int setInputs(int limit)
public String getMode()
public void setMode(String mode)
mode - the mode to setpublic void setParams(String params)
public static void resetDocsOnerror()
protected org.nuxeo.ecm.core.api.DocumentModelList removeDocsWithError(org.nuxeo.ecm.core.api.DocumentModelList inputs)
public void runSilentlyInTx(boolean unrestricted)
public abstract void run()
throws org.nuxeo.ecm.core.api.ClientException
run in class org.nuxeo.ecm.core.api.UnrestrictedSessionRunnerorg.nuxeo.ecm.core.api.ClientExceptionCopyright © 2020. All rights reserved.