Class DeploymentPreviewResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.execution.DeploymentPreviewResource
@Path("deploy/preview")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DeploymentPreviewResource
extends Object
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeploymentPreviewResource
(DeploymentVersionService deploymentVersionService, EnvironmentService environmentService, DeploymentProjectService deploymentProjectService, DeploymentResultService deploymentResultService, ResultsSummaryManager resultSummaryManager, DeploymentVersionVcsChangesetService deploymentVersionVcsChangesetService, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService, PlanRestService planRestService, CustomVariableContext customVariableContext, Jsonator<Object> jsonator, CachedPlanManager cachedPlanManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getPossibleResults
(String planKeyString, long deploymentProjectId, javax.ws.rs.core.UriInfo uriInfo) com.atlassian.bamboo.plugins.rest.deployments.execution.DeploymentPreviewResource.VersionName
getVersionName
(long deploymentProjectId, String resultKey) getVersionPreview
(String versionName, long versionId, long deploymentProjectId, long previousVersionId, javax.ws.rs.core.UriInfo uriInfo) getVersionPreview
(String resultKey, String planKey, int buildNumber, long deploymentProjectId, long previousVersionId, javax.ws.rs.core.UriInfo uriInfo)
-
Field Details
-
POSSIBLE_RESULTS
- See Also:
-
VERSION_NAME
- See Also:
-
VERSION_ID
- See Also:
-
PREVIOUS_VERSION_ID
- See Also:
-
-
Constructor Details
-
DeploymentPreviewResource
@Inject public DeploymentPreviewResource(DeploymentVersionService deploymentVersionService, EnvironmentService environmentService, DeploymentProjectService deploymentProjectService, DeploymentResultService deploymentResultService, ResultsSummaryManager resultSummaryManager, DeploymentVersionVcsChangesetService deploymentVersionVcsChangesetService, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService, PlanRestService planRestService, CustomVariableContext customVariableContext, Jsonator<Object> jsonator, CachedPlanManager cachedPlanManager)
-
-
Method Details
-
getVersionPreview
@GET @Path("version") public DeploymentPreviewResource.VersionPreview getVersionPreview(@QueryParam("versionName") String versionName, @QueryParam("versionId") long versionId, @QueryParam("deploymentProjectId") long deploymentProjectId, @QueryParam("previousVersionId") long previousVersionId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
getPossibleResults
@GET @Path("possibleResults") public javax.ws.rs.core.Response getPossibleResults(@QueryParam("planKey") String planKeyString, @QueryParam("deploymentProjectId") long deploymentProjectId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
getVersionName
@GET @Path("versionName") public com.atlassian.bamboo.plugins.rest.deployments.execution.DeploymentPreviewResource.VersionName getVersionName(@QueryParam("deploymentProjectId") long deploymentProjectId, @QueryParam("resultKey") String resultKey) throws WebValidationException - Throws:
WebValidationException
-
getVersionPreview
@GET @Path("result") public DeploymentPreviewResource.VersionPreview getVersionPreview(@QueryParam("resultKey") String resultKey, @QueryParam("planKey") String planKey, @QueryParam("buildNumber") int buildNumber, @QueryParam("deploymentProjectId") long deploymentProjectId, @QueryParam("previousVersionId") long previousVersionId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-