Class ResultResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.ResultResource
-
@Singleton public class ResultResource extends Object
Provide build results information. Available for anonymous and authenticated users, however proper permissions are enforced
-
-
Constructor Summary
Constructors Constructor Description ResultResource(BambooPermissionManager bambooPermissionManager, ResultService resultService, FeatureManager featureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuildComment(String projectKey, String buildKey, String buildNumber, CreateCommentRequest comment, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
addBuildLabel(String projectKey, String buildKey, String buildNumber, RestBuildLabel label, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
RestResults
getBranchHistory(String projectKey, String buildKey, String branchName, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Result
getBuild(String projectKey, String buildKey, String buildNumber, String expandParam, boolean showBuildPositions, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Result
getBuildAlias(String projectKey, String buildKey, String buildNumber, String expandParam, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestComments
getBuildComments(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo)
RestResults
getBuildHistory(String projectKey, String buildKey, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestBuildLabels
getBuildLabels(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo)
RestResults
getBuildResultsForChangeset(String changesetId, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestResults
getBuildResultsForCheckoutChangeset(String changesetId, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestResults
getLatestBuildResults(String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, String buildStateParam, int startIndexParam, int maxResultsParam, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestResults
getLatestBuildResultsForProject(String projectKey, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, String buildStateParam, int startIndexParam, int maxResultsParam, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
RestResultStatus
getResultStatus(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
javax.ws.rs.core.Response
removeBuildComment(String projectKey, String buildKey, String buildNumber, long commentId, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
removeBuildLabel(String projectKey, String buildKey, String buildNumber, String labelName, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Constructor Detail
-
ResultResource
public ResultResource(BambooPermissionManager bambooPermissionManager, ResultService resultService, FeatureManager featureManager)
-
-
Method Detail
-
getLatestBuildResults
public RestResults getLatestBuildResults(String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, String buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getLatestBuildResultsForProject
public RestResults getLatestBuildResultsForProject(String projectKey, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, String buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuildResultsForChangeset
public RestResults getBuildResultsForChangeset(String changesetId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuildResultsForCheckoutChangeset
public RestResults getBuildResultsForCheckoutChangeset(String changesetId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuildHistory
public RestResults getBuildHistory(String projectKey, String buildKey, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBranchHistory
public RestResults getBranchHistory(String projectKey, String buildKey, String branchName, String expandParam, boolean favouriteParam, String labelParam, String issueKeyParam, boolean allStatesParam, String lifecycleStateParam, boolean continuableParam, boolean buildStateParam, int startIndexParam, int maxResultsParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuild
public Result getBuild(String projectKey, String buildKey, String buildNumber, String expandParam, boolean showBuildPositions, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuildAlias
public Result getBuildAlias(String projectKey, String buildKey, String buildNumber, String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getBuildComments
public RestComments getBuildComments(String projectKey, String buildKey, String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
-
addBuildComment
public void addBuildComment(String projectKey, String buildKey, String buildNumber, CreateCommentRequest comment, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo)
-
removeBuildComment
public javax.ws.rs.core.Response removeBuildComment(String projectKey, String buildKey, String buildNumber, long commentId, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getBuildLabels
public RestBuildLabels getBuildLabels(String projectKey, String buildKey, String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo)
-
addBuildLabel
public javax.ws.rs.core.Response addBuildLabel(String projectKey, String buildKey, String buildNumber, RestBuildLabel label, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo)
-
removeBuildLabel
public javax.ws.rs.core.Response removeBuildLabel(String projectKey, String buildKey, String buildNumber, String labelName, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
- Throws:
Exception
-
getResultStatus
public RestResultStatus getResultStatus(String projectKey, String buildKey, String buildNumber, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
-