Class GetTaskNamesOperation
java.lang.Object
org.nuxeo.ecm.platform.routing.core.api.operation.GetTaskNamesOperation
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
Modifier and TypeFieldDescriptionprotected OperationContext
static final String
protected String
protected int
protected String
protected CoreSession
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) run()
-
Field Details
-
ID
- See Also:
-
ctx
-
session
-
lang
-
searchTerm
-
value
-
xpath
-
limit
protected int limit- Since:
- 8.4
-
-
Constructor Details
-
GetTaskNamesOperation
public GetTaskNamesOperation()
-
-
Method Details
-
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
-
getWorkflowTranslatedTitle
protected String getWorkflowTranslatedTitle(DocumentModel taskDoc, Locale locale) throws PropertyException - Throws:
PropertyException
-