Class PlanResultsAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ResultsSummaryAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
BuildResultsAction, ChainResultsAction, EditCommentAction, GotoBuildResult, LinkTestToJiraIssueAction, RemoveBuildArtifacts, UnlinkTestToJiraIssueAction, ViewJiraIssues, ViewTrackingForBuildResult

public class PlanResultsAction extends PlanActionSupport implements ResultsSummaryAware, PlanReadSecurityAware
See Also:
  • Field Details

  • Constructor Details

    • PlanResultsAction

      public PlanResultsAction()
  • Method Details

    • getResultsSummary

      public ResultsSummary getResultsSummary()
      Specified by:
      getResultsSummary in interface ResultsSummaryAware
    • getComments

      @NotNull public @NotNull List<Comment> getComments()
    • setResultsSummary

      public void setResultsSummary(ResultsSummary buildResults)
      Specified by:
      setResultsSummary in interface ResultsSummaryAware
    • getPreviousFailedStageResult

      @Nullable public @Nullable ChainStageResult getPreviousFailedStageResult(BuildResultsSummary buildResultsSummary)
      returns the previous ChainStageResult that failed before the BuildResultsSummary failed. Returns null if no ChainStageResult failed.
      Parameters:
      buildResultsSummary -
      Returns:
    • getStageToContinue

      @Nullable public @Nullable StageIdentifier getStageToContinue()
    • getNeighbouringSummaries

      @NotNull public @NotNull List<ResultsSummary> getNeighbouringSummaries()
    • getTriggerReasonLongDescriptionHtml

      public String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
    • getTriggerReasonLongDescriptionText

      public String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)
    • getLinkedJiraIssues

      public Collection<LinkedJiraIssue> getLinkedJiraIssues()
    • getLinkedJiraIssue

      @NotNull public @NotNull Pair<LinkedJiraIssue,URI> getLinkedJiraIssue(String issueKey)
      returns jira issue details for the given issueKey, or - in case of OAuth authentication required - URI for the login dance
    • getLinkedJiraIssueForTestCase

      @Nullable public @Nullable String getLinkedJiraIssueForTestCase(long testCaseId)
    • getSizeBoundedLinkedJiraIssues

      public Collection<LinkedJiraIssue> getSizeBoundedLinkedJiraIssues(int size)
    • isHideJiraTeaser

      public boolean isHideJiraTeaser()
    • getShortJiraIssues

      public List<LinkedJiraIssue> getShortJiraIssues()
      Returns a shortened (default length) list of jira issues and controls logic behind which are shown * Fixed issues are given preference
      Returns:
    • getShortJiraIssues

      public List<LinkedJiraIssue> getShortJiraIssues(int numberNeeded)
      Returns a required length list of jira issues and controls logic behind which are shown * Fixed issues are given preference

      This is needed so that only the required number of JIRA Issues will be retrieved from the jira server

      Parameters:
      numberNeeded -
      Returns:
    • getJiraIssues

      public List<LinkedJiraIssue> getJiraIssues()
    • isOauthAuthenticationRequired

      public boolean isOauthAuthenticationRequired()
    • getOauthLoginDanceUrl

      public URI getOauthLoginDanceUrl()
    • getIssueDetails

      protected Iterable<LinkedJiraIssue> getIssueDetails(Iterable<LinkedJiraIssue> linkedIssues)
    • setJiraIssueManager

      public void setJiraIssueManager(JiraIssueManager jiraIssueManager)
    • setExtendedAuthorManager

      public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
    • setTriggerManager

      public void setTriggerManager(TriggerManager triggerManager)
    • setJiraIssueUtils

      public void setJiraIssueUtils(JiraIssueUtils jiraIssueUtils)
    • setAgentManager

      public void setAgentManager(AgentManager agentManager)
    • setTestsManager

      public void setTestsManager(TestsManager testsManager)
    • getBuildNumber

      public Integer getBuildNumber()
      Overrides:
      getBuildNumber in class PlanActionSupport
    • setBuildNumber

      public void setBuildNumber(Integer buildNumber)
      Overrides:
      setBuildNumber in class PlanActionSupport
    • getRequestedBuildNumber

      public Integer getRequestedBuildNumber()
      Returns:
      build number as requested by call, without verification against actual plan result build number range
    • getFailStartDate

      public Date getFailStartDate()
    • isAuditLoggingEnabled

      public boolean isAuditLoggingEnabled()
    • isConfigChanged

      public boolean isConfigChanged()
    • hasDetachedResults

      public boolean hasDetachedResults()
    • getTestCaseResultOnMasterBranch

      @Nullable public @Nullable TestCaseResult getTestCaseResultOnMasterBranch(@Nullable @Nullable TestCaseResult testCaseResult)
    • isSortByDuration

      public boolean isSortByDuration()
    • setSortByDuration

      public void setSortByDuration(boolean b)
    • getBuildStatusHelper

      public BuildStatusHelper getBuildStatusHelper()
    • setAuditLogService

      public void setAuditLogService(AuditLogService auditLogService)
    • getExecutionStatus

      public ExecutionStatus getExecutionStatus()
    • getChainExecution

      @Nullable public @Nullable ChainExecution getChainExecution()
    • setChainExecutionManager

      public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
    • setTestQuarantineManager

      public void setTestQuarantineManager(TestQuarantineManager testQuarantineManager)
    • buildWebPanelContext

      @NotNull protected @NotNull Map<String,Object> buildWebPanelContext(@NotNull @NotNull String location)
      Description copied from class: BambooActionSupport
      Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached
      Overrides:
      buildWebPanelContext in class PlanActionSupport
      Returns:
      context
    • validateResultSummary

      protected boolean validateResultSummary()
    • getSkippedCommitsCount

      public int getSkippedCommitsCount(@NotNull @NotNull ResultsSummary resultsSummary)
    • getRepositoryData

      public VcsRepositoryData getRepositoryData(@NotNull @NotNull RepositoryChangeset repositoryChangeset)
    • getRepositoryViewer

      @Nullable public @Nullable VcsRepositoryViewer getRepositoryViewer(@NotNull @NotNull VcsRepositoryData repositoryData)
    • getUrlsForChangeset

      @NotNull public @NotNull Map<String,String> getUrlsForChangeset(@NotNull @NotNull RepositoryChangeset repositoryChangeset)
    • getUrlForCommitId

      @Nullable public @Nullable String getUrlForCommitId(@Nullable @Nullable String commitId, @NotNull @NotNull VcsRepositoryData repositoryData)
    • getRepositoryChangesetsWithNotBlankRevision

      public com.google.common.collect.ImmutableList<RepositoryChangeset> getRepositoryChangesetsWithNotBlankRevision(@NotNull @NotNull ResultsSummary resultsSummary)
    • setCreateIssueAppLinkId

      public void setCreateIssueAppLinkId(String createIssueAppLinkId)
    • getCreateIssueAppLinkId

      public String getCreateIssueAppLinkId()
    • getNewIssueKey

      public String getNewIssueKey()
    • setNewIssueKey

      public void setNewIssueKey(String newIssueKey)
    • getMaskedMetadata

      public Map<String,String> getMaskedMetadata()
    • getMaskedVariables

      public List<VariableDefinitionContext> getMaskedVariables()
    • getManualVariables

      @NotNull public @NotNull List<VariableDefinitionContext> getManualVariables()
    • isTestQuarantineEnabled

      public boolean isTestQuarantineEnabled()
    • isTestQuarantineExpiryOverridable

      public boolean isTestQuarantineExpiryOverridable()
    • getTestQuarantineExpiryDuration

      public int getTestQuarantineExpiryDuration()
    • getTestQuarantineExpiryPeriod

      public String getTestQuarantineExpiryPeriod()
    • getArtifactLinkUrl

      @Nullable public final @Nullable String getArtifactLinkUrl(ArtifactLink artifactLink)
    • getArtifactSizeDescription

      @NotNull public final @NotNull String getArtifactSizeDescription(ArtifactLink artifactLink)
    • isChain

      public boolean isChain()
    • setArtifactLinkManager

      public void setArtifactLinkManager(ArtifactLinkManager artifactLinkManager)
    • setRepositoryDefinitionManager

      public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
      Overrides:
      setRepositoryDefinitionManager in class PlanActionSupport
    • setVcsRepositoryViewerManager

      public void setVcsRepositoryViewerManager(VcsRepositoryViewerManager vcsRepositoryViewerManager)
    • setCustomVariableContext

      public void setCustomVariableContext(CustomVariableContext customVariableContext)
    • setCommentManager

      public void setCommentManager(CommentManager commentManager)
    • setResultsSummaryVariableAccessor

      public void setResultsSummaryVariableAccessor(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor)
    • getSecuredDomainObject

      public Object getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
      Overrides:
      getSecuredDomainObject in class PlanActionSupport