Class CardColorResource
java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.rapid.view.CardColorResource
@Path("cardcolors/{rapidViewId}")
@Consumes("application/json")
@Produces("application/json")
public class CardColorResource
extends AbstractResource
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
authenticationContext, log -
Constructor Summary
ConstructorsConstructorDescriptionCardColorResource(CardColorHelper cardColorHelper, I18nFactoryService i18nFactoryService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddCardColor(Long rapidViewId, CardColorEntry editModel) Add a quick filter to the rapid view.jakarta.ws.rs.core.ResponsedeleteCardColor(Long rapidViewId, Long id) Delete a rapid viewjakarta.ws.rs.core.ResponsegetCardColor(Long rapidViewId, Long id) Get the quick filter for a given rapidView and idjakarta.ws.rs.core.ResponsegetStrategyColors(Long rapidViewId, String strategyId, Boolean preloadValues) Get the card colors for a given strategyjakarta.ws.rs.core.ResponsemoveCardColor(Long rapidViewId, Long id, EntryMoveModel model) Modify a card color sequence within a rapidview.jakarta.ws.rs.core.ResponsesetCardColorStrategy(com.atlassian.greenhopper.web.rapid.view.CardColorResource.CardColorStrategyUpdateRequest request) jakarta.ws.rs.core.ResponseupdateCardColor(Long rapidViewId, Long id, CardColorEntry editModel) Update a quick filter 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
-
CardColorResource
@Inject public CardColorResource(CardColorHelper cardColorHelper, I18nFactoryService i18nFactoryService)
-
-
Method Details
-
setCardColorStrategy
@PUT @Path("/strategy") @Consumes("application/json") public jakarta.ws.rs.core.Response setCardColorStrategy(com.atlassian.greenhopper.web.rapid.view.CardColorResource.CardColorStrategyUpdateRequest request) -
getStrategyColors
@GET @Path("strategy/{strategyId}") public jakarta.ws.rs.core.Response getStrategyColors(@PathParam("rapidViewId") Long rapidViewId, @PathParam("strategyId") String strategyId, @QueryParam("preloadValues") Boolean preloadValues) Get the card colors for a given strategy -
getCardColor
@GET @Path("color/{id}") public jakarta.ws.rs.core.Response getCardColor(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id) Get the quick filter for a given rapidView and id -
updateCardColor
@PUT @Path("color/{id}") public jakarta.ws.rs.core.Response updateCardColor(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id, CardColorEntry editModel) Update a quick filter given its id and the id of the rapid view it belongs to -
addCardColor
@POST @Path("color") public jakarta.ws.rs.core.Response addCardColor(@PathParam("rapidViewId") Long rapidViewId, CardColorEntry editModel) Add a quick filter to the rapid view. The quick filter is added as first quick filter in the list -
deleteCardColor
@DELETE @Path("color/{id}") public jakarta.ws.rs.core.Response deleteCardColor(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id) Delete a rapid view -
moveCardColor
@POST @Path("color/{id}/move") public jakarta.ws.rs.core.Response moveCardColor(@PathParam("rapidViewId") Long rapidViewId, @PathParam("id") Long id, EntryMoveModel model) Modify a card color 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
-