@Component public class ResultServiceImpl extends Object implements ResultService
Constructor and Description |
---|
ResultServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor,
ArtifactLinkManager artifactLinkManager,
BambooUserManager bambooUserManager,
BuildLogFileAccessorFactory buildLogFileAccessorFactory,
BuildLoggerManager buildLoggerManager,
BuildQueueManager buildQueueManager,
CommentService commentService,
ExecutableAgentsHelper executableAgentsHelper,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
LabelManager labelManager,
PlanExecutionManager planExecutionManager,
PlanRestService planRestService,
ProjectsRestService projectsRestService,
ResultsSummaryManager resultsSummaryManager,
StageStatusHelper stageStatusHelper) |
Modifier and Type | Method and Description |
---|---|
void |
addBuildComment(String projectKey,
String buildKey,
String buildNumber,
RestComment comment,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo) |
void |
addBuildLabel(String projectKey,
String buildKey,
String buildNumber,
RestBuildLabel label,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo) |
protected void |
addBuildSearchCriteria(ImmutablePlan plan,
javax.ws.rs.core.UriInfo uriInfo,
ResultsSummaryCriteriaBuilder criteriaBuilder) |
RestResults |
getBranchHistoryList(String projectKey,
String buildKey,
String branchName,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Does not return Specs-related results
|
RestComments |
getBuildComments(String projectKey,
String buildKey,
String buildNumber,
javax.ws.rs.core.UriInfo uriInfo) |
RestResults |
getBuildHistoryList(String projectKey,
String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Does not return Specs-related results
|
RestBuildLabels |
getBuildLabels(String projectKey,
String buildKey,
String buildNumber,
javax.ws.rs.core.UriInfo uriInfo) |
Result |
getBuildResult(String projectKey,
String buildKey,
String buildNumber,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Get the build result for the given parameters.
|
RestResults |
getBuildResultsForChangeSetId(String changeSetId,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestResults |
getBuildResultsForCheckoutChangeSetId(String changeSetId,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestResults |
getLatestBuildResults(javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Does not return Specs-related results
|
RestResults |
getLatestBuildResultsForProject(String projectKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Does not return Specs-related results
|
RestResultStatus |
getResultStatus(String projectKey,
String buildKey,
String buildNumber,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
protected RestResults |
prepareBuildHistoryResponse(List<? extends ResultsSummary> buildResultsSummaries,
int size,
org.apache.commons.lang3.Range<Integer> range,
javax.ws.rs.core.UriInfo uriInfo) |
protected RestResults |
prepareBuildHistoryResponse(List<? extends ResultsSummary> buildResultsSummaries,
javax.ws.rs.core.UriInfo uriInfo) |
void |
removeBuildComment(String projectKey,
String buildKey,
String buildNumber,
long commentId,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo) |
void |
removeBuildLabel(String projectKey,
String buildKey,
String buildNumber,
String labelName,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
javax.ws.rs.core.UriInfo uriInfo) |
@Autowired public ResultServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ArtifactLinkManager artifactLinkManager, BambooUserManager bambooUserManager, BuildLogFileAccessorFactory buildLogFileAccessorFactory, BuildLoggerManager buildLoggerManager, BuildQueueManager buildQueueManager, CommentService commentService, ExecutableAgentsHelper executableAgentsHelper, com.atlassian.sal.api.message.I18nResolver i18nResolver, LabelManager labelManager, PlanExecutionManager planExecutionManager, PlanRestService planRestService, ProjectsRestService projectsRestService, ResultsSummaryManager resultsSummaryManager, StageStatusHelper stageStatusHelper)
public RestResults getLatestBuildResults(javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
ResultService
getLatestBuildResults
in interface ResultService
public RestResults getLatestBuildResultsForProject(String projectKey, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
ResultService
getLatestBuildResultsForProject
in interface ResultService
public RestResults getBuildResultsForChangeSetId(String changeSetId, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
getBuildResultsForChangeSetId
in interface ResultService
public RestResults getBuildResultsForCheckoutChangeSetId(String changeSetId, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
getBuildResultsForCheckoutChangeSetId
in interface ResultService
public RestComments getBuildComments(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo)
getBuildComments
in interface ResultService
public void addBuildComment(String projectKey, String buildKey, String buildNumber, RestComment comment, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
addBuildComment
in interface ResultService
public void removeBuildComment(String projectKey, String buildKey, String buildNumber, long commentId, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
removeBuildComment
in interface ResultService
public RestBuildLabels getBuildLabels(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo)
getBuildLabels
in interface ResultService
public void addBuildLabel(String projectKey, String buildKey, String buildNumber, RestBuildLabel label, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo)
addBuildLabel
in interface ResultService
public void removeBuildLabel(String projectKey, String buildKey, String buildNumber, String labelName, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext, javax.ws.rs.core.UriInfo uriInfo) throws Exception
removeBuildLabel
in interface ResultService
Exception
protected void addBuildSearchCriteria(ImmutablePlan plan, javax.ws.rs.core.UriInfo uriInfo, ResultsSummaryCriteriaBuilder criteriaBuilder)
public RestResults getBuildHistoryList(String projectKey, String buildKey, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
ResultService
getBuildHistoryList
in interface ResultService
public RestResults getBranchHistoryList(String projectKey, String buildKey, String branchName, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
ResultService
getBranchHistoryList
in interface ResultService
protected RestResults prepareBuildHistoryResponse(List<? extends ResultsSummary> buildResultsSummaries, javax.ws.rs.core.UriInfo uriInfo)
protected RestResults prepareBuildHistoryResponse(List<? extends ResultsSummary> buildResultsSummaries, int size, org.apache.commons.lang3.Range<Integer> range, javax.ws.rs.core.UriInfo uriInfo)
public Result getBuildResult(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
ResultService
getBuildResult
in interface ResultService
projectKey
- project keybuildKey
- build's part of plan keybuildNumber
- buildNumber (numeric value or 'latest' for the highest build number)uriInfo
- uriInfoauthenticationContext
- authenticationContextResult
objectpublic RestResultStatus getResultStatus(String projectKey, String buildKey, String buildNumber, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
getResultStatus
in interface ResultService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.