@Singleton public class PlanResource extends Object
Constructor and Description |
---|
PlanResource(BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
BranchDetectionService branchDetectionService,
CachedPlanManager cachedPlanManager,
PlanManager planManager,
LabelManager labelManager,
PlanRestService planRestService,
VariableDefinitionManager variableDefinitionManager,
JiraIssueManager jiraIssueManager,
JiraApplinksService jiraApplinksService,
com.atlassian.event.api.EventPublisher eventPublisher,
ArtifactDefinitionManager artifactDefinitionManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
TestsManager testsManager,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
TestQuarantineManager testQuarantineManager,
FeatureManager featureManager,
VcsRepositoryManager vcsRepositoryManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPlanLabel(String projectKey,
String buildKey,
RestPlanLabel label,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Adds new label to plan specified by projectKey-buildKey.
|
RestPlanBranch |
createNewBranch(String projectKey,
String buildKey,
String branchName,
String vcsBranchName,
Boolean enabled,
Boolean cleanupEnabled,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method for creating branch for a specified plan.
|
javax.ws.rs.core.Response |
disablePlan(String projectKey,
String buildKey)
Disable plan.
|
javax.ws.rs.core.Response |
enablePlan(String projectKey,
String buildKey)
Enable plan.
|
RestPlans |
getAllPlanList(javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method used to list all plans on Bamboo service that user is allowed to see (READ permission).
|
RestJiraIssue |
getIssueDetails(String projectKey,
String buildKey,
String issueKey,
javax.ws.rs.core.UriInfo uriInfo) |
RestPlan |
getPlan(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestPlan |
getPlanAlias(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestArtifactDefinitions |
getPlanArtifactDefinition(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestPlanBranch |
getPlanBranch(String projectKey,
String buildKey,
String branchName,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide details for specified Branch of a specified Plan.
|
RestBranches |
getPlanBranches(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Provide list of branches for specified plan.
|
RestPlanLabels |
getPlanLabels(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo)
Provide list of labels for plan specified by projectKey-buildKey.
|
RestVcsBranches |
getVcsBranches(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders hh)
Provide list of vcs branch names for branches that exist on the default repository of this plan
|
javax.ws.rs.core.Response |
markPlanFavourite(String projectKey,
String buildKey,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
javax.ws.rs.core.Response |
quarantineTest(String projectKey,
String buildKey,
long testId,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
RestQuarantineExpiry restQuarantineExpiry) |
javax.ws.rs.core.Response |
removePlanLabel(String projectKey,
String buildKey,
String labelName,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Removes label from plan specified by projectKey-buildKey-buildNumber.
|
javax.ws.rs.core.Response |
unleashTest(String projectKey,
String buildKey,
long testId,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
javax.ws.rs.core.Response |
unmarkPlanFavourite(String projectKey,
String buildKey,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Remove plan from favorites.
|
public PlanResource(BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, BranchDetectionService branchDetectionService, CachedPlanManager cachedPlanManager, PlanManager planManager, LabelManager labelManager, PlanRestService planRestService, VariableDefinitionManager variableDefinitionManager, JiraIssueManager jiraIssueManager, JiraApplinksService jiraApplinksService, com.atlassian.event.api.EventPublisher eventPublisher, ArtifactDefinitionManager artifactDefinitionManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TestsManager testsManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, TestQuarantineManager testQuarantineManager, FeatureManager featureManager, VcsRepositoryManager vcsRepositoryManager)
public RestPlans getAllPlanList(@Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Possible expand parameters plans - list of plans plans.plan - list of plans with plan details plans.plan.actions
public RestPlan getPlan(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestPlan getPlanAlias(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestBranches getPlanBranches(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)uriInfo
- authenticationContext
- RestBranches
public RestPlanBranch createNewBranch(String projectKey, String buildKey, String branchName, String vcsBranchName, Boolean enabled, Boolean cleanupEnabled, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan keybranchName
- new branch namevcsBranchName
- name of the VCS branchenabled
- cleanupEnabled
- enable branch expiryuriInfo
- authenticationContext
- RestPlanBranch
the newly created branchpublic RestPlanBranch getPlanBranch(String projectKey, String buildKey, String branchName, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)branchName
- branch display nameuriInfo
- authenticationContext
- RestBranches
public RestPlanLabels getPlanLabels(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)uriInfo
- RestPlanLabels
public void addPlanLabel(String projectKey, String buildKey, RestPlanLabel label, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)label
- label content to add to build resultauthenticationContext
- public javax.ws.rs.core.Response removePlanLabel(String projectKey, String buildKey, String labelName, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws Exception
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)labelName
- label name to remove from planauthenticationContext
- Exception
public RestVcsBranches getVcsBranches(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders hh)
projectKey
- project keybuildKey
- plan key - only top level plans are supporteduriInfo
- RestVcsBranchList
public RestJiraIssue getIssueDetails(String projectKey, String buildKey, String issueKey, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response markPlanFavourite(String projectKey, String buildKey, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public javax.ws.rs.core.Response unmarkPlanFavourite(String projectKey, String buildKey, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- buildKey
- public javax.ws.rs.core.Response enablePlan(String projectKey, String buildKey)
projectKey
- buildKey
- public javax.ws.rs.core.Response disablePlan(String projectKey, String buildKey)
projectKey
- buildKey
- public RestArtifactDefinitions getPlanArtifactDefinition(String projectKey, String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public javax.ws.rs.core.Response quarantineTest(String projectKey, String buildKey, long testId, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @NotNull RestQuarantineExpiry restQuarantineExpiry) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response unleashTest(String projectKey, String buildKey, long testId, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
WebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences