public interface RestStageService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteStage(@NotNull PlanKey planKey,
long stageId,
@NotNull io.atlassian.fugue.Option<ConfirmationToken> confirmationToken,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Deletes the given stage.
|
RestWarnings |
getStageDeletionWarnings(@NotNull PlanKey planKey,
long stageId,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Get warnings related to stage deletion.
|
RestWarnings |
getStageMoveWarnings(@NotNull PlanKey planKey,
long stageId,
int index,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Returns warnings related to a stage move action.
|
@NotNull RestStage |
updateStage(@NotNull PlanKey planKey,
long stageId,
@NotNull RestStage restStage,
@NotNull io.atlassian.fugue.Option<ConfirmationToken> token,
@Nullable Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Performs a partial update on a stage, updating just the fields that are specified while the rest will remain the same.
|
@NotNull @NotNull RestStage updateStage(@NotNull @NotNull PlanKey planKey, long stageId, @NotNull @NotNull RestStage restStage, @NotNull @NotNull io.atlassian.fugue.Option<ConfirmationToken> token, @Nullable @Nullable Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
planKey - of the plan the stage belongs tostageId - id of stage being updatedrestStage - partial representation of a stage, only the specified fields will be updatedtoken - checks we have a token that applies to the current status of the stage, and not an obsolete versionexpansion - fields to expand in the stage representation included in the responseuriInfo - URI info from the requestRestStage updated versionInvalidRequestException - if invalid paramsNotFoundException - if the stage is not foundNotAuthorizedException - if the user lack permissionsWebValidationException - if the stage cannot be updated due to invalid requestvoid deleteStage(@NotNull
@NotNull PlanKey planKey,
long stageId,
@NotNull
@NotNull io.atlassian.fugue.Option<ConfirmationToken> confirmationToken,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo)
throws WebValidationException
planKey - of plan stage belongs to.stageId - id of stage being removed.confirmationToken - The token to match before performing the deleteuriInfo - URI info from the requestConflictException - if there is a token validation errorWebValidationExceptionRestWarnings getStageDeletionWarnings(@NotNull @NotNull PlanKey planKey, long stageId, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
planKey - of plan stage is instageId - of stage to deleteexpansion - the expansion.uriInfo - URI info from the requestWebValidationExceptionRestWarnings getStageMoveWarnings(@NotNull @NotNull PlanKey planKey, long stageId, int index, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
planKey - plan key of the plan the stage is instageId - identifies the stage to moveindex - zero-based position the stage will be moved intoexpansion - the fields to expand in the warnings responseuriInfo - URI info from the requestRestWarnings with warnings if any, and a tokenWebValidationException - if the planKey is not validNotFoundException - if stage does not existorg.acegisecurity.AccessDeniedException - if user lacks edit configuration plan permissionsCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.