@Singleton public class DeploymentProjectResource extends Object
Constructor and Description |
---|
DeploymentProjectResource(AdministrationConfigurationAccessor administrationConfigurationAccessor,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
DeploymentProjectService deploymentProjectService,
DeploymentVersionService deploymentVersionService,
EnvironmentService environmentService,
FeatureManager featureManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
ResultsSummaryManager resultsSummaryManager,
RssPermissionManager rssPermissionManager,
DeploymentProjectDeletionService deploymentProjectDeletionService,
SpecsExporter specsExporter) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addAssignedRepository(Long deploymentProjectId,
@Nullable RestIdContainer idContainer,
javax.ws.rs.core.UriInfo uriInfo) |
RestDeploymentProject |
addDeploymentProject(@Nullable RestCreateDeploymentProjectRequest createDeploymentProjectRequest) |
RestDeploymentVersion |
createVersion(long deploymentProjectId,
@Nullable RestCreateVersionRequest createVersionRequest,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
javax.ws.rs.core.Response |
deleteDeploymentProject(long deploymentProjectId) |
javax.ws.rs.core.Response |
deleteRepositoryMapping(Long deploymentProjectId,
Long repositoryId) |
RestDeploymentProject |
editDeploymentProject(long deploymentProjectId,
@Nullable RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest) |
javax.ws.rs.core.Response |
exportDeploymentSpec(long deploymentProjectId,
String packageNameOpt,
@Nullable String formatParam) |
List<RestDeploymentProject> |
getAllDeploymentProjects() |
RestDeploymentProject |
getDeploymentProject(long deploymentProjectId) |
List<RestLinkedDeploymentProject> |
getDeploymentProjectsForPlan(@Nullable String planKey) |
RestDeploymentVersionList |
getDeploymentProjectVersions(long deploymentProjectId,
@Nullable String planBranchKey,
javax.ws.rs.core.UriInfo uriInfo) |
List<RestRepository> |
listAssignedRepositories(Long deploymentProjectId) |
RestRepositoryList |
searchAvailableRepositories(long deploymentProjectId,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
public DeploymentProjectResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, com.atlassian.sal.api.ApplicationProperties applicationProperties, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, EnvironmentService environmentService, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ResultsSummaryManager resultsSummaryManager, RssPermissionManager rssPermissionManager, DeploymentProjectDeletionService deploymentProjectDeletionService, SpecsExporter specsExporter)
public List<RestDeploymentProject> getAllDeploymentProjects()
public RestDeploymentProject addDeploymentProject(@Nullable @Nullable RestCreateDeploymentProjectRequest createDeploymentProjectRequest) throws WebValidationException
WebValidationException
public RestDeploymentProject getDeploymentProject(long deploymentProjectId)
public RestDeploymentProject editDeploymentProject(long deploymentProjectId, @Nullable @Nullable RestUpdateDeploymentProjectRequest updateDeploymentProjectRequest) throws WebValidationException
WebValidationException
public RestDeploymentVersionList getDeploymentProjectVersions(long deploymentProjectId, @Nullable @Nullable String planBranchKey, @Context javax.ws.rs.core.UriInfo uriInfo)
public RestDeploymentVersion createVersion(long deploymentProjectId, @Nullable @Nullable RestCreateVersionRequest createVersionRequest, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException, org.acegisecurity.AccessDeniedException
WebValidationException
org.acegisecurity.AccessDeniedException
public List<RestLinkedDeploymentProject> getDeploymentProjectsForPlan(@Nullable @Nullable String planKey) throws WebValidationException
WebValidationException
public List<RestRepository> listAssignedRepositories(Long deploymentProjectId) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response addAssignedRepository(Long deploymentProjectId, @Nullable @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
public javax.ws.rs.core.Response deleteRepositoryMapping(Long deploymentProjectId, Long repositoryId) throws NotFoundException
NotFoundException
public RestRepositoryList searchAvailableRepositories(long deploymentProjectId, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response deleteDeploymentProject(long deploymentProjectId)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.