@ExperimentalApi public class JobConfigShortcutResource extends Object
JobConfigResource
.Constructor and Description |
---|
JobConfigShortcutResource(RestJobService restJobService,
JobService jobService,
InputParser inputParser,
JobConversionFunction jobConversionFunction) |
Modifier and Type | Method and Description |
---|---|
RestJob |
getJob(String jobKeyString,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieves the details of a specific job of a stage of a build plan.
|
javax.ws.rs.core.Response |
removeJob(String jobKeyString,
ConfirmationToken confirmationToken,
javax.ws.rs.core.UriInfo uriInfo)
Deletes a specific job of a build plan.
|
RestJob |
updateJob(String jobKeyString,
ConfirmationToken confirmationToken,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo,
RestJob restJob)
Updates a job partially, not overriding any field that it's not specified.
|
public JobConfigShortcutResource(RestJobService restJobService, JobService jobService, InputParser inputParser, JobConversionFunction jobConversionFunction)
public RestJob getJob(String jobKeyString, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
jobKeyString
- identifier of the job to retrieve details forexpansion
- represents an expansion tree of additional information we want to retrieveRestJob
WebValidationException
public RestJob updateJob(String jobKeyString, @Context @Nullable ConfirmationToken confirmationToken, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo, RestJob restJob) throws WebValidationException
jobKeyString
- identifier of the job to retrieve details forconfirmationToken
- token to validate that the job being updated has not been modified in the meantime,
in which case the operation would be rejected. To get this validation token see
JobConfigResource.getMoveWarnings(String, long, String, long, Expansion, UriInfo)
.
This token in optional, if not specified it won't be checked and the operation will be forced.expansion
- represents an expansion tree of additional information we want to retrieverestJob
- representation of the job to updateRestJob
WebValidationException
- if there's validation errors, which maps into a 400 Bad Requestpublic javax.ws.rs.core.Response removeJob(String jobKeyString, @Context @Nullable ConfirmationToken confirmationToken, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
jobKeyString
- identifier of the job to deleteconfirmationToken
- token to validate that the job being deleted has not been modified in the meantime,
in which case the operation would be rejected. To get this validation token see
JobConfigResource.getDeletionWarnings(String, long, String, Expansion, UriInfo)
.
This token in optional, if not specified it won't be checked and the operation will be forced.Response
an empty responseWebValidationException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.