com.atlassian.bamboo.plugins.rest.plan
Class PlanConfigResource

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.plan.PlanConfigResource

@ExperimentalApi
public class PlanConfigResource
extends Object

Provides RESTful operations for the configuration of build plans.

Since:
5.9

Field Summary
static PageResponse<RestJob> ALL_JOBS
           
static RestPlanConfig PLAN_CONFIG
          Used for REST documentation generation.
 
Constructor Summary
PlanConfigResource(RestJobService restJobService, RestPlanService restPlanService, InputParser inputParser)
           
 
Method Summary
 PageResponse<RestJob> getJobsForPlan(String planKeyString, Expansion expansion, PageRequest pageRequest, javax.ws.rs.core.UriInfo uriInfo)
          Retrieves all jobs for a build plan.
 RestPlanConfig getPlan(String planKeyString, Expansion expansion)
          Gets the details of a build plan configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAN_CONFIG

public static final RestPlanConfig PLAN_CONFIG
Used for REST documentation generation.


ALL_JOBS

public static final PageResponse<RestJob> ALL_JOBS
Constructor Detail

PlanConfigResource

public PlanConfigResource(RestJobService restJobService,
                          RestPlanService restPlanService,
                          InputParser inputParser)
Method Detail

getPlan

public RestPlanConfig getPlan(String planKeyString,
                              @Context
                              Expansion expansion)
                       throws WebValidationException
Gets the details of a build plan configuration.

Parameters:
planKeyString - key of the build plan to get the configuration for
expansion - represents an expansion tree of additional information we want to retrieve
Returns:
RestPlan a representation of the configuration of a build plan
Throws:
WebValidationException

getJobsForPlan

public PageResponse<RestJob> getJobsForPlan(String planKeyString,
                                            @Context
                                            Expansion expansion,
                                            @Context
                                            PageRequest pageRequest,
                                            @Context
                                            javax.ws.rs.core.UriInfo uriInfo)
Retrieves all jobs for a build plan.

Parameters:
planKeyString - key of the plan to retrieve jobs for
expansion - represents an expansion tree of additional information we want to retrieve
pageRequest - represents the params that define which page the request is after
uriInfo - provides access to application and request URI information
Returns:
a paginated representation of a RestJob


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.