Package com.atlassian.bamboo.task
Interface TaskService
-
- All Known Implementing Classes:
TaskServiceImpl
@PublicApi public interface TaskServiceService for performing task related operations.- Since:
- v5.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends TaskContainer>
@NotNull DecoratedTaskDefinition<T>getDecoratedTaskDefinition(T taskContainer, long taskId)Retrieve aDecoratedTaskDefinitionfrom a givenTaskContainer.<T extends TaskContainer>
@NotNull List<DecoratedTaskDefinition<T>>getDecoratedTaskDefinitions(T taskContainer)Retrieve a list of allDecoratedTaskDefinitionfor a givenTaskContainer.
-
-
-
Method Detail
-
getDecoratedTaskDefinitions
@NotNull <T extends TaskContainer> @NotNull List<DecoratedTaskDefinition<T>> getDecoratedTaskDefinitions(@NotNull T taskContainer)
Retrieve a list of allDecoratedTaskDefinitionfor 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 aDecoratedTaskDefinitionfrom 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.
-
-