|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plugins.rest.resource.PlanResource
@Singleton public class PlanResource
Plan service is supposed to be used to retrieve full list of plans and plan details
Constructor Summary | |
---|---|
PlanResource(BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
LabelManager labelManager,
PlanManager planManager,
VariableDefinitionManager variableDefinitionManager,
BranchDetectionService branchDetectionService,
PlanService planService)
|
Method Summary | |
---|---|
void |
addPlanLabel(java.lang.String projectKey,
java.lang.String buildKey,
RestPlanLabel label,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Adds new label to plan specified by projectKey-buildKey. |
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). |
RestPlan |
getPlan(java.lang.String projectKey,
java.lang.String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
|
RestPlan |
getPlanAlias(java.lang.String projectKey,
java.lang.String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
|
RestPlanBranch |
getPlanBranch(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.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(java.lang.String projectKey,
java.lang.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(java.lang.String projectKey,
java.lang.String buildKey,
javax.ws.rs.core.UriInfo uriInfo)
Provide list of labels for plan specified by projectKey-buildKey. |
RestVcsBranches |
getVcsBranches(java.lang.String projectKey,
java.lang.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 |
void |
removePlanLabel(java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String labelName,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Removes label from plan specified by projectKey-buildKey-buildNumber. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanResource(BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, LabelManager labelManager, PlanManager planManager, VariableDefinitionManager variableDefinitionManager, BranchDetectionService branchDetectionService, PlanService planService)
Method Detail |
---|
public RestPlans getAllPlanList(@Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestPlan getPlan(java.lang.String projectKey, java.lang.String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestPlan getPlanAlias(java.lang.String projectKey, java.lang.String buildKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestBranches getPlanBranches(java.lang.String projectKey, java.lang.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 getPlanBranch(java.lang.String projectKey, java.lang.String buildKey, java.lang.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(java.lang.String projectKey, java.lang.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(java.lang.String projectKey, java.lang.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 void removePlanLabel(java.lang.String projectKey, java.lang.String buildKey, java.lang.String labelName, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws java.lang.Exception
projectKey
- project keybuildKey
- plan key (might be simply planKey or composite planKey-jobKey)labelName
- label name to remove from planauthenticationContext
-
java.lang.Exception
public RestVcsBranches getVcsBranches(java.lang.String projectKey, java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |