Class TaskConfigResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.plan.stage.job.task.TaskConfigResource
-
@Internal public class TaskConfigResource extends Object
Provides RESTful operations on tasks for the configuration of build plans.- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description TaskConfigResource(com.atlassian.sal.api.message.I18nResolver i18nResolver, InputParser inputParser, JobService jobService, TaskService taskService, CachedPlanManager cachedPlanManager, PaginationService paginationService, TaskConversionFunction taskConversionFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestPageModel<RestTask>getAllTasksForJob(String planKeyString, long stageId, String jobKeyString, Expansion expansion, PageRequest pageRequest, javax.ws.rs.core.UriInfo uriInfo)Return all tasks for a given job.RestTaskgetTaskFromJob(String planKeyString, long stageId, String jobKeyString, long taskId, Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)Return a task from a given job.
-
-
-
Constructor Detail
-
TaskConfigResource
public TaskConfigResource(com.atlassian.sal.api.message.I18nResolver i18nResolver, InputParser inputParser, JobService jobService, TaskService taskService, CachedPlanManager cachedPlanManager, PaginationService paginationService, TaskConversionFunction taskConversionFunction)
-
-
Method Detail
-
getAllTasksForJob
public RestPageModel<RestTask> getAllTasksForJob(String planKeyString, long stageId, String jobKeyString, @Context Expansion expansion, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
Return all tasks for a given job. This will return an ordered list of tasks, beginning with the regular tasks and followed by the finalized tasks.- Parameters:
planKeyString- plan to retrieve tasks forstageId- stage to retrieve tasks forjobKeyString- job to retrieve tasks forexpansion- represents an expansion tree of additional information we want to retrievepageRequest- represents the params that define which page the request is afteruriInfo- the URI info for the request- Returns:
- an ordered list of
RestTask
-
getTaskFromJob
public RestTask getTaskFromJob(String planKeyString, long stageId, String jobKeyString, long taskId, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
Return a task from a given job.- Parameters:
planKeyString- plan to retrieve the task fromstageId- stage to retrieve the task fromjobKeyString- job to retrieve the task fromtaskId- id of the task to retrieveexpansion- represents an expansion tree of additional information we want to retrieveuriInfo- the URI info for the request- Returns:
- a
RestTask
-
-