com.atlassian.bamboo.build
Class PlanResultsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.PlanActionSupport
              extended by com.atlassian.bamboo.build.PlanResultsAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ResultsSummaryAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
BuildResultsAction, ChainResultsAction, EditCommentAction, GotoBuildResult, ViewJiraIssues

public class PlanResultsAction
extends PlanActionSupport
implements ResultsSummaryAware, PlanReadSecurityAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  AgentManager agentManager
           
protected  AuditLogService auditLogService
           
protected  BuildStatusHelper buildStatusHelper
           
protected  ExtendedAuthorManager extendedAuthorManager
           
protected  java.util.Date failStartDate
           
protected  JiraApplinksService jiraApplinksService
           
protected  JiraIssueManager jiraIssueManager
           
protected  JiraIssueUtils jiraIssueUtils
           
protected  java.util.List<ResultsSummary> neighbouringSummaries
           
protected  com.atlassian.plugin.PluginManager pluginManager
           
protected  ResultsSummary resultsSummary
           
protected  TestQuarantineManager testQuarantineManager
           
protected  TestsManager testsManager
           
protected  TriggerManager triggerManager
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, immutablePlanCacheService, repositoryConfigurationService, resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
PlanResultsAction()
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(java.lang.String location)
          Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached
 java.lang.Integer getBuildNumber()
           
 BuildStatusHelper getBuildStatusHelper()
           
 ChainExecution getChainExecution()
           
 ExecutionStatus getExecutionStatus()
           
 java.util.Date getFailStartDate()
           
protected  java.lang.Iterable<LinkedJiraIssue> getIssueDetails(java.lang.Iterable<LinkedJiraIssue> linkedIssues)
           
 java.util.List<LinkedJiraIssue> getJiraIssues()
           
 java.util.Collection<LinkedJiraIssue> getLinkedJiraIssues()
           
 java.util.List<ResultsSummary> getNeighbouringSummaries()
           
 java.net.URI getOauthLoginDanceUrl()
           
 ChainStageResult getPreviousFailedStageResult(BuildResultsSummary buildResultsSummary)
          returns the previous ChainStageResult that failed before the BuildResultsSummary failed.
 com.google.common.collect.ImmutableList<RepositoryChangeset> getRepositoryChangesetsWithNotBlankRevision(ResultsSummary resultsSummary)
           
 RepositoryData getRepositoryData(RepositoryChangeset repositoryChangeset)
           
 ResultsSummary getResultsSummary()
           
 java.util.List<LinkedJiraIssue> getShortJiraIssues()
          Returns a shortened (default length) list of jira issues and controls logic behind which are shown * Fixed issues are given preference
 java.util.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

 java.util.Collection<LinkedJiraIssue> getSizeBoundedLinkedJiraIssues(int size)
           
 int getSkippedCommitsCount(ResultsSummary resultsSummary)
           
 java.lang.String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
           
 java.lang.String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)
           
 boolean isAuditLoggingEnabled()
           
 boolean isConfigChanged()
           
 boolean isHideJiraTeaser()
           
 boolean isJiraApplicationLinkDefined()
           
 boolean isOauthAuthenticationRequired()
           
 boolean isSortByDuration()
           
 void setAgentManager(AgentManager agentManager)
           
 void setAuditLogService(AuditLogService auditLogService)
           
 void setBuildNumber(java.lang.Integer buildNumber)
           
 void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setJiraApplinksService(JiraApplinksService jiraApplinksService)
           
 void setJiraIssueManager(JiraIssueManager jiraIssueManager)
           
 void setJiraIssueUtils(JiraIssueUtils jiraIssueUtils)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setResultsSummary(ResultsSummary buildResults)
           
 void setSortByDuration(boolean b)
           
 void setTestQuarantineManager(TestQuarantineManager testQuarantineManager)
           
 void setTestsManager(TestsManager testsManager)
           
 void setTriggerManager(TriggerManager triggerManager)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
getBuildKey, getCurrentlyBuildingPlans, getErrorAccessor, getJobsWebItemsForSection, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanResultKey, isRestartable, planNotFound, setBuildKey, setErrorAccessor, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryConfigurationService, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.ww2.aware.PlanAware
getPlan, setPlan
 
Methods inherited from interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Field Detail

pluginManager

protected com.atlassian.plugin.PluginManager pluginManager

neighbouringSummaries

protected java.util.List<ResultsSummary> neighbouringSummaries

extendedAuthorManager

protected ExtendedAuthorManager extendedAuthorManager

triggerManager

protected TriggerManager triggerManager

agentManager

protected AgentManager agentManager

jiraIssueManager

protected JiraIssueManager jiraIssueManager

jiraIssueUtils

protected JiraIssueUtils jiraIssueUtils

jiraApplinksService

protected JiraApplinksService jiraApplinksService

testsManager

protected TestsManager testsManager

auditLogService

protected AuditLogService auditLogService

testQuarantineManager

protected TestQuarantineManager testQuarantineManager

buildStatusHelper

protected BuildStatusHelper buildStatusHelper

resultsSummary

protected ResultsSummary resultsSummary

failStartDate

protected java.util.Date failStartDate
Constructor Detail

PlanResultsAction

public PlanResultsAction()
Method Detail

getResultsSummary

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

setResultsSummary

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

setPluginManager

public void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)

getPreviousFailedStageResult

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

Parameters:
buildResultsSummary -
Returns:

getNeighbouringSummaries

@NotNull
public java.util.List<ResultsSummary> getNeighbouringSummaries()

getTriggerReasonLongDescriptionHtml

public java.lang.String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)

getTriggerReasonLongDescriptionText

public java.lang.String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)

getLinkedJiraIssues

public java.util.Collection<LinkedJiraIssue> getLinkedJiraIssues()

getSizeBoundedLinkedJiraIssues

public java.util.Collection<LinkedJiraIssue> getSizeBoundedLinkedJiraIssues(int size)

isJiraApplicationLinkDefined

public boolean isJiraApplicationLinkDefined()

isHideJiraTeaser

public boolean isHideJiraTeaser()

getShortJiraIssues

public java.util.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 java.util.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 java.util.List<LinkedJiraIssue> getJiraIssues()

isOauthAuthenticationRequired

public boolean isOauthAuthenticationRequired()

getOauthLoginDanceUrl

public java.net.URI getOauthLoginDanceUrl()

getIssueDetails

protected java.lang.Iterable<LinkedJiraIssue> getIssueDetails(java.lang.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 java.lang.Integer getBuildNumber()
Overrides:
getBuildNumber in class PlanActionSupport

setBuildNumber

public void setBuildNumber(java.lang.Integer buildNumber)
Overrides:
setBuildNumber in class PlanActionSupport

getFailStartDate

public java.util.Date getFailStartDate()

isAuditLoggingEnabled

public boolean isAuditLoggingEnabled()

isConfigChanged

public boolean isConfigChanged()

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 ChainExecution getChainExecution()

setChainExecutionManager

public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)

setTestQuarantineManager

public void setTestQuarantineManager(TestQuarantineManager testQuarantineManager)

setJiraApplinksService

public void setJiraApplinksService(JiraApplinksService jiraApplinksService)

buildWebPanelContext

@NotNull
protected java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(@NotNull
                                                                                        java.lang.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

getSkippedCommitsCount

public int getSkippedCommitsCount(@NotNull
                                  ResultsSummary resultsSummary)

getRepositoryData

public RepositoryData getRepositoryData(@NotNull
                                        RepositoryChangeset repositoryChangeset)

getRepositoryChangesetsWithNotBlankRevision

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


Copyright © 2012 Atlassian. All Rights Reserved.