@Singleton public class DeploymentProjectResource extends Object
Constructor and Description |
---|
DeploymentProjectResource(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
DeploymentProjectService deploymentProjectService,
EnvironmentService environmentService,
DeploymentVersionService deploymentVersionService,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService,
ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
RestDeploymentProject |
addDeploymentProject(RestCreateDeploymentProjectRequest createDeploymentProjectRequest)
Create deployment project.
|
RestDeploymentVersion |
createVersion(long deploymentProjectId,
RestCreateVersionRequest createVersionRequest,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Create deployment version for given deployment project.
|
RestDeploymentProject |
editDeploymentProject(long deploymentProjectId,
RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest)
Update deployment project.
|
List<RestDeploymentProject> |
getAllDeploymentProjects()
Find all deployment projects with environments.
|
RestDeploymentProject |
getDeploymentProject(long deploymentProjectId)
Find deployment project by id.
|
List<RestLinkedDeploymentProject> |
getDeploymentProjectsForPlan(String planKey)
Get list of deployment projects for build plan.
|
RestDeploymentVersionList |
getDeploymentProjectVersions(long deploymentProjectId,
String planBranchKey,
javax.ws.rs.core.UriInfo uriInfo)
Get list of deployment versions by deployment project id
|
public DeploymentProjectResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DeploymentProjectService deploymentProjectService, EnvironmentService environmentService, DeploymentVersionService deploymentVersionService, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService, ResultsSummaryManager resultsSummaryManager)
public List<RestDeploymentProject> getAllDeploymentProjects() throws Exception
Exception
public RestDeploymentProject addDeploymentProject(@Nullable RestCreateDeploymentProjectRequest createDeploymentProjectRequest) throws WebValidationException
createDeploymentProjectRequest
- deployment project to be createdWebValidationException
public RestDeploymentProject getDeploymentProject(long deploymentProjectId)
deploymentProjectId
- deployment project idpublic RestDeploymentProject editDeploymentProject(long deploymentProjectId, @Nullable RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest) throws WebValidationException
deploymentProjectId
- deployment project idupdateDeploymentProjectRequest
- deployment projectWebValidationException
public RestDeploymentVersionList getDeploymentProjectVersions(long deploymentProjectId, @Nullable String planBranchKey, @Context javax.ws.rs.core.UriInfo uriInfo)
deploymentProjectId
- deployment project idplanBranchKey
- plan branch key. Can be empty if default branch is requireduriInfo
- uri infopublic RestDeploymentVersion createVersion(long deploymentProjectId, @Nullable RestCreateVersionRequest createVersionRequest, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException, org.acegisecurity.AccessDeniedException
deploymentProjectId
- id of deployment projectcreateVersionRequest
- payloadauthenticationContext
- authentication contextWebValidationException
org.acegisecurity.AccessDeniedException
public List<RestLinkedDeploymentProject> getDeploymentProjectsForPlan(@Nullable String planKey) throws WebValidationException
planKey
- plan key. RequiredWebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.