Class PlanConfigResource


  • @Internal
    public class PlanConfigResource
    extends Object
    Provides RESTful operations for the configuration of build plans.
    Since:
    5.9
    • Method Detail

      • getPlan

        public RestPlanConfig getPlan​(String planKeyString,
                                      @Context
                                      Expansion expansion,
                                      @Context
                                      javax.ws.rs.core.UriInfo uriInfo)
                               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 RestPageModel<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