Class TaskManagerImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.managers.GenericManagerImpl<Task>
pw.chew.clickup4j.internal.entities.managers.TaskManagerImpl
- All Implemented Interfaces:
GenericManager<Task>,TaskManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssignee(@NotNull User user) Adds an assignee to this task.addAssignees(@NotNull User... users) Adds multiple assignees to this task.complete()Synchronously saves the entity.removeAssignee(@NotNull User user) Removes an assignee from this task.removeAssignees(@NotNull User... users) Removes multiple assignees from this task.voidSaves the entity.setDescription(@Nullable String description) Changes the description of this task.Changes the name of this task.Sets the parent task of this task.setPriority(@NotNull Task.Priority priority) Sets the priority of this task.setStatus(@NotNull Task.Status status) Sets the status of this task.setTimeEstimate(@NotNull Duration duration) Sets the time estimate of this task.Methods inherited from class pw.chew.clickup4j.internal.entities.managers.GenericManagerImpl
getClickUp4jMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pw.chew.clickup4j.api.entities.managers.GenericManager
getClickUp4j
-
Constructor Details
-
TaskManagerImpl
-
-
Method Details
-
setName
Description copied from interface:TaskManagerChanges the name of this task.- Specified by:
setNamein interfaceTaskManager- Parameters:
name- The new name of this task.- Returns:
- This task manager.
-
setDescription
Description copied from interface:TaskManagerChanges the description of this task.
Passnullor""to remove the description.- Specified by:
setDescriptionin interfaceTaskManager- Parameters:
description- The new description of this task.- Returns:
- This task manager.
-
setStatus
Description copied from interface:TaskManagerSets the status of this task.- Specified by:
setStatusin interfaceTaskManager- Parameters:
status- The new status of this task.- Returns:
- This task manager.
-
setPriority
Description copied from interface:TaskManagerSets the priority of this task.- Specified by:
setPriorityin interfaceTaskManager- Parameters:
priority- The new priority of this task.- Returns:
- This task manager.
-
setParent
Description copied from interface:TaskManagerSets the parent task of this task.
This converts the task to a subtask. This process is not reversible.- Specified by:
setParentin interfaceTaskManager- Parameters:
task- The parent task.- Returns:
- This task manager.
-
setTimeEstimate
Description copied from interface:TaskManagerSets the time estimate of this task.- Specified by:
setTimeEstimatein interfaceTaskManager- Parameters:
duration- The time estimate of this task.- Returns:
- This task manager.
-
addAssignee
Description copied from interface:TaskManagerAdds an assignee to this task.- Specified by:
addAssigneein interfaceTaskManager- Parameters:
user- The assignee to add.- Returns:
- This task manager.
-
addAssignees
Description copied from interface:TaskManagerAdds multiple assignees to this task.- Specified by:
addAssigneesin interfaceTaskManager- Parameters:
users- The assignees to add.- Returns:
- This task manager.
-
removeAssignee
Description copied from interface:TaskManagerRemoves an assignee from this task.- Specified by:
removeAssigneein interfaceTaskManager- Parameters:
user- The assignee to remove.- Returns:
- This task manager.
-
removeAssignees
Description copied from interface:TaskManagerRemoves multiple assignees from this task.- Specified by:
removeAssigneesin interfaceTaskManager- Parameters:
users- The assignees to remove.- Returns:
- This task manager.
-
save
Description copied from interface:GenericManagerSaves the entity.
Pass a consumer to be called when the request is complete.- Specified by:
savein interfaceGenericManager<Task>- Specified by:
savein interfaceTaskManager- Overrides:
savein classGenericManagerImpl<Task>- Parameters:
callback- The consumer to be called when the request is complete.
-
complete
Description copied from interface:GenericManagerSynchronously saves the entity.- Specified by:
completein interfaceGenericManager<Task>- Specified by:
completein interfaceTaskManager- Overrides:
completein classGenericManagerImpl<Task>- Returns:
- The saved entity.
-