Package ch.aaap.harvestclient.impl
Class TasksApiImpl
Object
ch.aaap.harvestclient.impl.TasksApiImpl
- All Implemented Interfaces:
Api.Create<Task>,Api.Delete<Task>,Api.Get<Task>,Api.Simple<Task>,TasksApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a new Task.voidDelete an existing Task.Return an existing Task.list(TaskFilter filter) list(TaskFilter filter, int page, int perPage) update(Reference<Task> taskReference, TaskUpdateInfo toChange) Updates the specific task by setting the values of the parameters passed.
-
Constructor Details
-
TasksApiImpl
-
-
Method Details
-
list
-
list
-
get
Description copied from interface:TasksApiReturn an existing Task. -
create
Description copied from interface:TasksApiCreate a new Task. Example:Task task = harvest.tasks().create(ImmutableTask.builder() .name("task name") .build());- Specified by:
createin interfaceApi.Create<Task>- Specified by:
createin interfaceTasksApi- Parameters:
creationInfo- creation information- Returns:
- the created Task
-
update
Description copied from interface:TasksApiUpdates the specific task by setting the values of the parameters passed. Any parameters not provided will be left unchanged -
delete
Description copied from interface:TasksApiDelete an existing Task. Only possible if no time entries are associated with it- Specified by:
deletein interfaceApi.Delete<Task>- Specified by:
deletein interfaceTasksApi- Parameters:
taskReference- a reference to the Task to be deleted
-