@Path(value="/plan") @Consumes(value="application/json") @Produces(value="application/json") @Singleton public class PlanResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PlanResource.BackgroundDeletionCompletedEventLogger |
Constructor and Description |
---|
PlanResource(DeletionService deletionService,
com.atlassian.event.api.EventPublisher eventPublisher,
PlanManager planManager,
ProjectManager projectManager,
ChainCreationService chainCreationService,
StageService stageService,
JobService jobService,
TaskConfigurationService taskConfigurationService,
JobCreationService jobCreationService,
RepositoryManager repositoryManager,
RepositoryConfigurationService repositoryConfigurationService,
BambooUserManager bambooUserManager,
TriggerConfigurationService triggerConfigurationService,
TriggerTypeManager triggerTypeManager,
ArtifactDefinitionManager artifactDefinitionManager,
UIConfigSupport uiConfigSupport,
RepositoryTestService repositoryTestService) |
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 |
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
|
List<RestVariableDefinition> |
getPlanVariables(String planKey) |
javax.ws.rs.core.Response |
runBackgroundDeletion()
Trigger background deletion and wait up to 30s for its completion
|
public PlanResource(DeletionService deletionService, com.atlassian.event.api.EventPublisher eventPublisher, PlanManager planManager, ProjectManager projectManager, ChainCreationService chainCreationService, StageService stageService, JobService jobService, TaskConfigurationService taskConfigurationService, JobCreationService jobCreationService, RepositoryManager repositoryManager, RepositoryConfigurationService repositoryConfigurationService, BambooUserManager bambooUserManager, TriggerConfigurationService triggerConfigurationService, TriggerTypeManager triggerTypeManager, ArtifactDefinitionManager artifactDefinitionManager, UIConfigSupport uiConfigSupport, RepositoryTestService repositoryTestService)
@DELETE @Path(value="{planKey}") public javax.ws.rs.core.Response deletePlan(@PathParam(value="planKey") String planKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
@DELETE public javax.ws.rs.core.Response deleteAllPlans()
@POST @Path(value="backgroundDeletion") public javax.ws.rs.core.Response runBackgroundDeletion()
@POST public javax.ws.rs.core.Response createPlan(RestPlan restPlan, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
@GET @Path(value="{planKey}/variables") public List<RestVariableDefinition> getPlanVariables(@PathParam(value="planKey") String planKey) throws WebValidationException
WebValidationException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.