Class SwimlaneResource

java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.rapid.view.SwimlaneResource

@Path("swimlanes") @Consumes("application/json") @Produces("application/json") public class SwimlaneResource extends AbstractResource
  • Constructor Details

    • SwimlaneResource

      @Inject public SwimlaneResource(SwimlaneHelper swimlaneHelper)
  • Method Details

    • getSwimlane

      @GET @Path("{rapidViewId}/{id}") public javax.ws.rs.core.Response getSwimlane(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id)
      Get the swimlane for a given rapidView and id
    • updateSwimlane

      @PUT @Path("{rapidViewId}/{id}") public javax.ws.rs.core.Response updateSwimlane(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id, SwimlaneEntry editModel)
      Update a swimlane given its id and the id of the rapid view it belongs to
    • addSwimlane

      @POST @Path("{rapidViewId}") public javax.ws.rs.core.Response addSwimlane(@PathParam("rapidViewId") Long rapidViewId, SwimlaneEntry editModel)
      Add a swimlane to the rapid view. The swimlane is added as first swimlane in the list
    • deleteSwimlane

      @DELETE @Path("{rapidViewId}/{id}") public javax.ws.rs.core.Response deleteSwimlane(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id)
      Delete a rapid view
    • moveSwimlane

      @POST @Path("{rapidViewId}/{id}/move") public javax.ws.rs.core.Response moveSwimlane(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id, EntryMoveModel model)
      Modify a swimlanes sequence within a rapidview.

      NOTE: We only implement position=FIRST and after=... parameters.

      The alternative field value pairs:

      position
      An absolute position, which may have a value of 'First', 'Last', 'Earlier' or 'Later'
      after
      A version to place this version after. The value should be the self link of another version

      NOTE: For this resource we only implement position=FIRST and after=... parameters.