public class GetTaskNamesOperation extends Object
Modifier and Type | Field and Description |
---|---|
protected OperationContext |
ctx |
static String |
ID |
protected String |
lang |
protected int |
limit |
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
protected int limit
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.