@Singleton public class DeploymentVersionResource extends Object
| Constructor and Description |
|---|
DeploymentVersionResource(DeploymentVersionService deploymentVersionService,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
| Modifier and Type | Method and Description |
|---|---|
RestDeploymentVersionStatus |
getLatestVersionStatus(long deploymentVersionId)
Get current status of deployment version.
|
RestDeploymentVersionStatus |
updateVersionStatus(long deploymentVersionId,
String newStatus,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Update deployment version status.
|
public DeploymentVersionResource(DeploymentVersionService deploymentVersionService, com.atlassian.sal.api.message.I18nResolver i18nResolver)
public RestDeploymentVersionStatus getLatestVersionStatus(long deploymentVersionId) throws WebValidationException
deploymentVersionId - deployment version idWebValidationExceptionpublic RestDeploymentVersionStatus updateVersionStatus(long deploymentVersionId, String newStatus, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
deploymentVersionId - deployment version idnewStatus - deployment version status. Possible values: UNKNOWN, APPROVED, BROKEN, INCOMPLETEauthenticationContext - authentication contextWebValidationExceptionCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.