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
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
authenticationContext, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addSwimlane
(Long rapidViewId, SwimlaneEntry editModel) Add a swimlane to the rapid view.javax.ws.rs.core.Response
deleteSwimlane
(Long rapidViewId, Long id) Delete a rapid viewjavax.ws.rs.core.Response
getSwimlane
(Long rapidViewId, Long id) Get the swimlane for a given rapidView and idjavax.ws.rs.core.Response
moveSwimlane
(Long rapidViewId, Long id, EntryMoveModel model) Modify a swimlanes sequence within a rapidview.javax.ws.rs.core.Response
updateSwimlane
(Long rapidViewId, Long id, SwimlaneEntry editModel) Update a swimlane given its id and the id of the rapid view it belongs toMethods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, checkResult, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, responseWithoutAccessCheck
-
Constructor Details
-
SwimlaneResource
-
-
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
-