@Path(value="config/plan/{planKey}/stage/{stageId}/job/{jobKey}/task") @Consumes(value="application/json") @Produces(value="application/json") @ExperimentalApi public class TaskConfigResource extends Object
Modifier and Type | Field and Description |
---|---|
static List<RestTask> |
ALL_TASKS |
static RestTask |
TASK
Used for REST documentation generation.
|
Constructor and Description |
---|
TaskConfigResource(com.atlassian.sal.api.message.I18nResolver i18nResolver,
InputParser inputParser,
JobService jobService,
TaskService taskService,
CachedPlanManager cachedPlanManager,
PaginationService paginationService,
TaskConversionFunction taskConversionFunction) |
Modifier and Type | Method and 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.
|
RestTask |
getTaskFromJob(String planKeyString,
long stageId,
String jobKeyString,
long taskId,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Return a task from a given job.
|
public static final RestTask TASK
public TaskConfigResource(com.atlassian.sal.api.message.I18nResolver i18nResolver, InputParser inputParser, JobService jobService, TaskService taskService, CachedPlanManager cachedPlanManager, PaginationService paginationService, TaskConversionFunction taskConversionFunction)
@GET public RestPageModel<RestTask> getAllTasksForJob(@PathParam(value="planKey") String planKeyString, @PathParam(value="stageId") long stageId, @PathParam(value="jobKey") String jobKeyString, @Context Expansion expansion, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
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 requestRestTask
@GET @Path(value="{taskId}") public RestTask getTaskFromJob(@PathParam(value="planKey") String planKeyString, @PathParam(value="stageId") long stageId, @PathParam(value="jobKey") String jobKeyString, @PathParam(value="taskId") long taskId, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
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 requestRestTask
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.