@Singleton public class PlanResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PlanResource.BackgroundDeletionCompletedEventLogger |
Constructor and Description |
---|
PlanResource(ArtifactDefinitionManager artifactDefinitionManager,
BambooUserManager bambooUserManager,
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 |
deletePlan(String planKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Mark plan for deletion
|
javax.ws.rs.core.Response |
doesPlanExistAsRecord(String planKey) |
Long |
findPlanId(String planKey) |
List<RestVariableDefinition> |
getPlanVariables(String planKey) |
javax.ws.rs.core.Response |
runBackgroundDeletion()
Trigger background deletion and wait up to 30s for its completion
|
public PlanResource(ArtifactDefinitionManager artifactDefinitionManager, BambooUserManager bambooUserManager, 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 deletePlan(String planKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public javax.ws.rs.core.Response deleteAllPlans()
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
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.