@Singleton public class PlanResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PlanResource.BackgroundDeletionCompletedEventLogger |
Constructor and Description |
---|
PlanResource(ArtifactDefinitionManager artifactDefinitionManager,
BambooUserManager bambooUserManager,
CachedPlanManager cachedPlanManager,
ChainCreationService chainCreationService,
DeletionService deletionService,
com.atlassian.event.api.EventPublisher eventPublisher,
JobCreationService jobCreationService,
JobService jobService,
LabelManager labelManager,
PlanManager planManager,
ProjectManager projectManager,
RepositoryDefinitionManager repositoryDefinitionManager,
RepositoryTestService repositoryTestService,
StageService stageService,
TaskConfigurationService taskConfigurationService,
TriggerConfigurationService triggerConfigurationService,
TriggerTypeManager triggerTypeManager,
UIConfigSupport uiConfigSupport,
VariableConfigurationService variableConfigurationService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createPlan(RestPlan restPlan,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Create plan.
|
javax.ws.rs.core.Response |
createPlanVariable(String planKey,
String variableKey,
String variableValue) |
javax.ws.rs.core.Response |
deleteAllPlans()
Mark all top level plans for deletion.
|
javax.ws.rs.core.Response |
deletePlansInProject(String projectKey)
Mark all top level plans belonging to a project for deletion.
|
javax.ws.rs.core.Response |
deletePlanVariable(String planKey,
String variableKey) |
javax.ws.rs.core.Response |
doesPlanExistAsRecord(String planKey) |
Long |
findPlanId(String planKey) |
List<String> |
getPlanLabels(String planKey) |
List<RestRepository> |
getPlanRepositories(String planKey) |
List<RestVariableDefinition> |
getPlanVariables(String planKey) |
List<RestTrigger> |
getTriggers(String planKey) |
javax.ws.rs.core.Response |
runBackgroundDeletion()
Trigger background deletion and wait up to 30s for its completion
|
List<String> |
setPlanLabels(String planKey,
List<String> labels) |
public PlanResource(ArtifactDefinitionManager artifactDefinitionManager, BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, ChainCreationService chainCreationService, DeletionService deletionService, com.atlassian.event.api.EventPublisher eventPublisher, JobCreationService jobCreationService, JobService jobService, LabelManager labelManager, PlanManager planManager, ProjectManager projectManager, RepositoryDefinitionManager repositoryDefinitionManager, RepositoryTestService repositoryTestService, StageService stageService, TaskConfigurationService taskConfigurationService, TriggerConfigurationService triggerConfigurationService, TriggerTypeManager triggerTypeManager, UIConfigSupport uiConfigSupport, VariableConfigurationService variableConfigurationService)
public javax.ws.rs.core.Response doesPlanExistAsRecord(String planKey)
public javax.ws.rs.core.Response deleteAllPlans()
public javax.ws.rs.core.Response deletePlansInProject(String projectKey)
public javax.ws.rs.core.Response runBackgroundDeletion()
public javax.ws.rs.core.Response createPlan(RestPlan restPlan, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public List<RestVariableDefinition> getPlanVariables(String planKey) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response createPlanVariable(String planKey, String variableKey, String variableValue) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response deletePlanVariable(String planKey, String variableKey) throws WebValidationException
WebValidationException
public List<RestRepository> getPlanRepositories(String planKey) throws WebValidationException
WebValidationException
public List<String> getPlanLabels(String planKey) throws WebValidationException
WebValidationException
public List<String> setPlanLabels(String planKey, List<String> labels) throws WebValidationException
WebValidationException
public List<RestTrigger> getTriggers(String planKey) throws WebValidationException
WebValidationException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.