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
-
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.void
Saves 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
getClickUp4j
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pw.chew.clickup4j.api.entities.managers.GenericManager
getClickUp4j
-
Constructor Details
-
TaskManagerImpl
-
-
Method Details
-
setName
Description copied from interface:TaskManager
Changes the name of this task.- Specified by:
setName
in interfaceTaskManager
- Parameters:
name
- The new name of this task.- Returns:
- This task manager.
-
setDescription
Description copied from interface:TaskManager
Changes the description of this task.
Passnull
or""
to remove the description.- Specified by:
setDescription
in interfaceTaskManager
- Parameters:
description
- The new description of this task.- Returns:
- This task manager.
-
setStatus
Description copied from interface:TaskManager
Sets the status of this task.- Specified by:
setStatus
in interfaceTaskManager
- Parameters:
status
- The new status of this task.- Returns:
- This task manager.
-
setPriority
Description copied from interface:TaskManager
Sets the priority of this task.- Specified by:
setPriority
in interfaceTaskManager
- Parameters:
priority
- The new priority of this task.- Returns:
- This task manager.
-
setParent
Description copied from interface:TaskManager
Sets the parent task of this task.
This converts the task to a subtask. This process is not reversible.- Specified by:
setParent
in interfaceTaskManager
- Parameters:
task
- The parent task.- Returns:
- This task manager.
-
setTimeEstimate
Description copied from interface:TaskManager
Sets the time estimate of this task.- Specified by:
setTimeEstimate
in interfaceTaskManager
- Parameters:
duration
- The time estimate of this task.- Returns:
- This task manager.
-
addAssignee
Description copied from interface:TaskManager
Adds an assignee to this task.- Specified by:
addAssignee
in interfaceTaskManager
- Parameters:
user
- The assignee to add.- Returns:
- This task manager.
-
addAssignees
Description copied from interface:TaskManager
Adds multiple assignees to this task.- Specified by:
addAssignees
in interfaceTaskManager
- Parameters:
users
- The assignees to add.- Returns:
- This task manager.
-
removeAssignee
Description copied from interface:TaskManager
Removes an assignee from this task.- Specified by:
removeAssignee
in interfaceTaskManager
- Parameters:
user
- The assignee to remove.- Returns:
- This task manager.
-
removeAssignees
Description copied from interface:TaskManager
Removes multiple assignees from this task.- Specified by:
removeAssignees
in interfaceTaskManager
- Parameters:
users
- The assignees to remove.- Returns:
- This task manager.
-
save
Description copied from interface:GenericManager
Saves the entity.
Pass a consumer to be called when the request is complete.- Specified by:
save
in interfaceGenericManager<Task>
- Specified by:
save
in interfaceTaskManager
- Overrides:
save
in classGenericManagerImpl<Task>
- Parameters:
callback
- The consumer to be called when the request is complete.
-
complete
Description copied from interface:GenericManager
Synchronously saves the entity.- Specified by:
complete
in interfaceGenericManager<Task>
- Specified by:
complete
in interfaceTaskManager
- Overrides:
complete
in classGenericManagerImpl<Task>
- Returns:
- The saved entity.
-