Class GetTaskNamesOperation
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.api.operation.GetTaskNamesOperation
-
public class GetTaskNamesOperation extends Object
Returns a list of current user open tasks where their translated name matches (partially or fully) the 'searchTerm' parameter. This operation is invoked from a select2widget and the number of returned results is limited to 15.- Since:
- 5.8
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description GetTaskNamesOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
ctx
protected OperationContext ctx
-
session
protected CoreSession session
-
searchTerm
protected String searchTerm
-
limit
protected int limit
- Since:
- 8.4
-
-
Constructor Detail
-
GetTaskNamesOperation
public GetTaskNamesOperation()
-
-
Method Detail
-
run
public DocumentModelList run()
-
getAllUserOpenTask
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.
-
getI18nLabel
protected String getI18nLabel(String label, Locale locale)
-
getWorkflowTranslatedTitle
protected String getWorkflowTranslatedTitle(DocumentModel taskDoc, Locale locale) throws PropertyException
- Throws:
PropertyException
-
-