Package com.atlassian.bamboo.task
Interface TaskService
- All Known Implementing Classes:
TaskServiceImpl
@PublicApi
public interface TaskService
Service for performing task related operations.
- Since:
- v5.10
-
Method Summary
Modifier and TypeMethodDescription<T extends TaskContainer>
@NotNull DecoratedTaskDefinition<T>getDecoratedTaskDefinition
(T taskContainer, long taskId) Retrieve aDecoratedTaskDefinition
from a givenTaskContainer
.<T extends TaskContainer>
@NotNull List<DecoratedTaskDefinition<T>>getDecoratedTaskDefinitions
(T taskContainer) Retrieve a list of allDecoratedTaskDefinition
for a givenTaskContainer
.
-
Method Details
-
getDecoratedTaskDefinitions
@NotNull <T extends TaskContainer> @NotNull List<DecoratedTaskDefinition<T>> getDecoratedTaskDefinitions(@NotNull T taskContainer) Retrieve a list of allDecoratedTaskDefinition
for a givenTaskContainer
.- Parameters:
taskContainer
- the entity for which to retrieve the task definitions.- Returns:
- a list of all converted task definitions.
-
getDecoratedTaskDefinition
@NotNull <T extends TaskContainer> @NotNull DecoratedTaskDefinition<T> getDecoratedTaskDefinition(@NotNull T taskContainer, long taskId) Retrieve aDecoratedTaskDefinition
from a givenTaskContainer
.- Parameters:
taskContainer
- the entity for which to retrieve the task definition.taskId
- The ID of the task to retrieve.- Returns:
- the converted task definition.
- Throws:
NotFoundException
- if the task doesn't exist.
-