Package com.mayam.wf.ws.client
Class TaskApi
java.lang.Object
com.mayam.wf.ws.client.TaskApi
Gives access to tasks using the API. Please see examples under
TasksClient
.
This class is accessed using TasksClient.taskApi()
.-
Constructor Summary
ConstructorDescriptionTaskApi
(com.mayam.wf.ws.client.internal.TasksRestClient client, javax.inject.Provider<AttributeMap> mapProvider, javax.inject.Provider<AttributeRangeMap> rangeMapProvider, javax.inject.Provider<AttributeMultiMap> multiMapProvider) -
Method Summary
Modifier and TypeMethodDescriptionCreates a newFilterCriteria
, fully initialized for convenience.createTask
(AttributeMap task) Creates a new task.void
deleteTask
(long taskId) Deletes a task by its task identifier.getTask
(long taskId) Retrieves a task by its task identifier.getTasks
(FilterCriteria filterCritera, int pageSize, int rowOffset) Retrieves a limited list of tasks based on criteria and offset from the start of the full result set.getTasks
(FilterExpression filterExpression, int pageSize, int rowOffset) Retrieves a limited list of tasks based on expression and offset from the start of the full result set.updateTask
(AttributeMap task) Updates a task.
-
Constructor Details
-
TaskApi
public TaskApi(com.mayam.wf.ws.client.internal.TasksRestClient client, javax.inject.Provider<AttributeMap> mapProvider, javax.inject.Provider<AttributeRangeMap> rangeMapProvider, javax.inject.Provider<AttributeMultiMap> multiMapProvider)
-
-
Method Details
-
getTask
Retrieves a task by its task identifier.- Parameters:
taskId
- task identifier.- Returns:
- task as an AttributeMap.
- Throws:
RemoteException
- if an error occurred on the server side.
-
deleteTask
Deletes a task by its task identifier.- Parameters:
taskId
- task identifier.- Throws:
RemoteException
- if an error occurred on the server side.
-
getTasks
public FilterResult getTasks(FilterExpression filterExpression, int pageSize, int rowOffset) throws RemoteException Retrieves a limited list of tasks based on expression and offset from the start of the full result set.- Parameters:
filterExpression
- expression used for filtering.pageSize
- the number of results to be returned.rowOffset
- the offset from the full result set at which the returned list will start.- Returns:
- the limited result list as well as a count of the full result set.
- Throws:
RemoteException
- if an error occurred on the server side.
-
createFilterCriteria
Creates a newFilterCriteria
, fully initialized for convenience.- Returns:
- a newly created FilterCriteria.