public class GetTaskNamesOperation extends Object
Modifier and Type | Field and Description |
---|---|
protected OperationContext |
ctx |
static String |
ID |
protected String |
lang |
static int |
LIMIT_RESULTS
Limit the number of results displayed to the user to avoid performance problems
|
protected String |
searchTerm |
protected CoreSession |
session |
protected String |
value |
protected String |
xpath |
Constructor and Description |
---|
GetTaskNamesOperation() |
Modifier and Type | Method and Description |
---|---|
protected DocumentModelList |
getAllUserOpenTask(CoreSession session,
Locale locale,
String searchTerm,
boolean partialMatch)
Returns all user tasks having their translated name matching ( partially or fully ) the given label.
|
protected String |
getI18nLabel(String label,
Locale locale) |
protected String |
getWorkflowTranslatedTitle(DocumentModel taskDoc,
Locale locale) |
DocumentModelList |
run() |
public static final String ID
protected OperationContext ctx
protected CoreSession session
protected String searchTerm
public static int LIMIT_RESULTS
public GetTaskNamesOperation()
public DocumentModelList run()
protected DocumentModelList getAllUserOpenTask(CoreSession session, Locale locale, String searchTerm, boolean partialMatch)
protected String getI18nLabel(String label, Locale locale)
protected String getWorkflowTranslatedTitle(DocumentModel taskDoc, Locale locale) throws PropertyException
PropertyException
Copyright © 2016 Nuxeo SA. All rights reserved.