Class DeploymentProjectResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectResource
@Path("deploy/project")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DeploymentProjectResource
extends Object
-
Constructor Summary
ConstructorDescriptionDeploymentProjectResource
(AdministrationConfigurationAccessor administrationConfigurationAccessor, com.atlassian.sal.api.ApplicationProperties applicationProperties, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, InternalEnvironmentService internalEnvironmentService, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ResultsSummaryManager resultsSummaryManager, RssPermissionManager rssPermissionManager, DeploymentProjectDeletionService deploymentProjectDeletionService, SpecsExporter specsExporter, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addAssignedRepository
(Long deploymentProjectId, @Nullable RestIdContainer idContainer, javax.ws.rs.core.UriInfo uriInfo) addDeploymentProject
(@Nullable RestCreateDeploymentProjectRequest createDeploymentProjectRequest) createVersion
(long deploymentProjectId, @Nullable RestCreateVersionRequest createVersionRequest) javax.ws.rs.core.Response
deleteDeploymentProject
(long deploymentProjectId) javax.ws.rs.core.Response
deleteRepositoryMapping
(Long deploymentProjectId, Long repositoryId) editDeploymentProject
(long deploymentProjectId, @Nullable RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest) javax.ws.rs.core.Response
exportDeploymentSpec
(long deploymentProjectId, String packageNameOpt, @Nullable String formatParam) getDeploymentProject
(long deploymentProjectId) getDeploymentProjectsForPlan
(@Nullable String planKey) getDeploymentProjectVersions
(long deploymentProjectId, @Nullable String planBranchKey, javax.ws.rs.core.UriInfo uriInfo) listAssignedRepositories
(Long deploymentProjectId) searchAvailableRepositories
(long deploymentProjectId, String searchTerm, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
DeploymentProjectResource
@Inject public DeploymentProjectResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, com.atlassian.sal.api.ApplicationProperties applicationProperties, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, InternalEnvironmentService internalEnvironmentService, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ResultsSummaryManager resultsSummaryManager, RssPermissionManager rssPermissionManager, DeploymentProjectDeletionService deploymentProjectDeletionService, SpecsExporter specsExporter, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
getAllDeploymentProjects
-
addDeploymentProject
@PUT public RestDeploymentProject addDeploymentProject(@Nullable @Nullable RestCreateDeploymentProjectRequest createDeploymentProjectRequest) throws WebValidationException - Throws:
WebValidationException
-
getDeploymentProject
@GET @Path("{deploymentProjectId}") public RestDeploymentProject getDeploymentProject(@PathParam("deploymentProjectId") long deploymentProjectId) -
editDeploymentProject
@POST @Path("{deploymentProjectId}") public RestDeploymentProject editDeploymentProject(@PathParam("deploymentProjectId") long deploymentProjectId, @Nullable @Nullable RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest) throws WebValidationException - Throws:
WebValidationException
-
getDeploymentProjectVersions
@GET @Path("{deploymentProjectId}/versions") public RestDeploymentVersionList getDeploymentProjectVersions(@PathParam("deploymentProjectId") long deploymentProjectId, @QueryParam("branchKey") @Nullable @Nullable String planBranchKey, @Context javax.ws.rs.core.UriInfo uriInfo) -
createVersion
@POST @Path("{deploymentProjectId}/version") public RestDeploymentVersion createVersion(@PathParam("deploymentProjectId") long deploymentProjectId, @Nullable @Nullable RestCreateVersionRequest createVersionRequest) throws WebValidationException, org.acegisecurity.AccessDeniedException - Throws:
WebValidationException
org.acegisecurity.AccessDeniedException
-
getDeploymentProjectsForPlan
@GET @Path("forPlan") public List<RestLinkedDeploymentProject> getDeploymentProjectsForPlan(@Nullable @QueryParam("planKey") @Nullable String planKey) throws WebValidationException - Throws:
WebValidationException
-
listAssignedRepositories
@GET @Path("{deploymentProjectId}/repository") public List<RestRepository> listAssignedRepositories(@PathParam("deploymentProjectId") Long deploymentProjectId) throws NotFoundException - Throws:
NotFoundException
-
addAssignedRepository
@POST @Path("{deploymentProjectId}/repository") public javax.ws.rs.core.Response addAssignedRepository(@PathParam("deploymentProjectId") Long deploymentProjectId, @Nullable @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException -
deleteRepositoryMapping
@DELETE @Path("{deploymentProjectId}/repository/{repositoryId}") public javax.ws.rs.core.Response deleteRepositoryMapping(@PathParam("deploymentProjectId") Long deploymentProjectId, @PathParam("repositoryId") Long repositoryId) throws NotFoundException - Throws:
NotFoundException
-
searchAvailableRepositories
@GET @Path("{deploymentProjectId}/repository/search") public RestRepositoryList searchAvailableRepositories(@PathParam("deploymentProjectId") long deploymentProjectId, @QueryParam("searchTerm") String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException - Throws:
NotFoundException
-
deleteDeploymentProject
@DELETE @Path("{deploymentProjectId}") public javax.ws.rs.core.Response deleteDeploymentProject(@PathParam("deploymentProjectId") long deploymentProjectId) -
exportDeploymentSpec
-