Class TaskObject
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject<Task>
-
- org.nuxeo.ecm.restapi.server.jaxrs.routing.TaskObject
-
public class TaskObject extends PaginableObject<Task>
- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_QUERY
static String
PAGE_PROVIDER_NAME
protected String
userId
protected String
workflowInstanceId
protected String
workflowModelName
Deprecated.since 11.1-
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
currentPageIndex, maxResults, offset, pageSize
-
-
Constructor Summary
Constructors Constructor Description TaskObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
completeTask(String taskId, String action, TaskCompletionRequest taskCompletionRequest)
javax.ws.rs.core.Response
delegateTask(String taskId, List<String> delegatedActors, String comment)
protected PageProviderDefinition
getPageProviderDefinition()
protected Object[]
getParams()
Task
getTaskById(String taskId)
List<Task>
getUserRelatedWorkflowTasks()
protected void
initialize(Object... args)
javax.ws.rs.core.Response
reassignTask(String taskId, List<String> actors, String comment)
-
Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
extractLongParam, getPaginableEntries, getPaginableEntries, getSearchDocument
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
PAGE_PROVIDER_NAME
public static final String PAGE_PROVIDER_NAME
- Since:
- 11.1
- See Also:
- Constant Field Values
-
BASE_QUERY
public static final String BASE_QUERY
-
userId
protected String userId
-
workflowInstanceId
protected String workflowInstanceId
-
workflowModelName
@Deprecated protected String workflowModelName
Deprecated.since 11.1For backward compatibility only. This parameter forces post-filtering and prevents paginated results.
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initialize
in classPaginableObject<Task>
-
reassignTask
public javax.ws.rs.core.Response reassignTask(String taskId, List<String> actors, String comment)
-
delegateTask
public javax.ws.rs.core.Response delegateTask(String taskId, List<String> delegatedActors, String comment)
-
completeTask
public javax.ws.rs.core.Response completeTask(String taskId, String action, TaskCompletionRequest taskCompletionRequest)
-
getPageProviderDefinition
protected PageProviderDefinition getPageProviderDefinition()
- Specified by:
getPageProviderDefinition
in classPaginableObject<Task>
-
getParams
protected Object[] getParams()
- Overrides:
getParams
in classPaginableObject<Task>
-
-