com.atlassian.bamboo.build
Class BuildResultsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.BuildActionSupport
              extended by com.atlassian.bamboo.build.BuildResultsAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BuildAware, BuildResultsAware, BuildReadSecurityAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, 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:
AddCommentToBuildResults, AddLabelToBuildResults, EditCommentAction, GetBuildResultsDetails, GotoBuildResult, ViewBuildResults, ViewBuildResultsSuccessfulTests, ViewBuildResultsTests

public class BuildResultsAction
extends BuildActionSupport
implements BuildResultsAware, BuildReadSecurityAware

See Also:
Serialized Form

Field Summary
protected  java.lang.String buildNumber
           
protected  BuildResults buildResults
           
protected  BuildResultsSummaryManager buildResultsSummaryManager
           
protected  TestResultDecorator decorator
           
protected  ExtendedAuthorManager extendedAuthorManager
           
protected  LocalAgentManager localAgentManager
           
protected  TestManager testManager
           
protected  TestResultManager testResultManager
           
protected  TriggerReasonManager triggerReasonManager
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
buildExecutionManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
CONFIRM, cookieCutter, dashboardCachingManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BuildResultsAction()
           
 
Method Summary
 java.lang.String doExecute()
          Places the current user on the page
protected  java.lang.String errorMessage(Build build)
           
 BuildAgent getAgent(BuildResultsSummary summary)
           
 BuildManager getBuildManager()
           
 java.lang.String getBuildNumber()
           
 BuildResults getBuildResults()
          Let the UI have the build results instance.
protected  BuildResults getBuildResultsFromContainer(Build build, int currentBuildNumber)
           
 BuildStatusHelper getBuildStatusHelper()
           
 ExtendedAuthorManager getExtendedAuthorManager()
           
 ExtendedBuildResultsSummary getExtendedBuildResultsSummary()
           
 BuildResultsSummary getFailingSinceForTest(BuildResults buildResults, TestResults testResults)
           
 java.lang.String getFailingSinceRelativeTime(BuildResultsSummary failingSinceSummary, BuildResults buildResults)
           
 java.lang.String getFailingSinceRelativeTime(BuildResults buildResults, TestResults testResults)
           
 java.util.List getNeighbouringSummaries()
           
 com.atlassian.plugin.PluginManager getPluginManager()
           
 TestResultDecorator getSuccessfulTests()
           
 TestResultManager getTestResultManager()
           
 java.lang.String getTriggerReasonLongDescriptionHtml(BuildResultsSummary buildResultsSummary)
           
 TriggerReasonManager getTriggerReasonManager()
           
 boolean isSortByDuration()
           
 void setBuildManager(BuildManager buildManager)
           
 void setBuildNumber(java.lang.String buildNumber)
          Which build results are we interested in?
 void setBuildResults(BuildResults buildResults)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setSortByDuration(boolean b)
           
 void setTestManager(TestManager testManager)
           
 void setTestResultManager(TestResultManager testResultManager)
           
 void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.BuildActionSupport
getBuild, getBuildKey, getCurrentlyRunningBuild, getSecuredDomainObject, setBuild, setBuildExecutionManager, setBuildKey
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, doDefault, doesLabelKeyHaveMatchingDescription, execute, getAdministrationConfiguration, getAsPreformattedText, getBamboo, getBambooLicenseManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getInstanceName, getReturnUrl, getSessionUser, getTotalErrors, getUser, getWebFragmentsContextMap, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasGlobalPermission, hasPlanPermission, hasPlanPermission, isEnableSignup, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfiguration, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setCookieCutter, setDashboardCachingManager, setErrorMessages, setHtmlUtils, setReturnUrl, setWebInterfaceManager, setWebResourceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, 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.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Field Detail

buildNumber

protected java.lang.String buildNumber

buildResults

protected BuildResults buildResults

testManager

protected TestManager testManager

decorator

protected TestResultDecorator decorator

testResultManager

protected TestResultManager testResultManager

buildResultsSummaryManager

protected BuildResultsSummaryManager buildResultsSummaryManager

extendedAuthorManager

protected ExtendedAuthorManager extendedAuthorManager

triggerReasonManager

protected TriggerReasonManager triggerReasonManager

localAgentManager

protected LocalAgentManager localAgentManager
Constructor Detail

BuildResultsAction

public BuildResultsAction()
Method Detail

getPluginManager

public com.atlassian.plugin.PluginManager getPluginManager()

setPluginManager

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

setBuildNumber

public void setBuildNumber(java.lang.String buildNumber)
Which build results are we interested in?

Parameters:
buildNumber - The number of the build we want to display

getBuildNumber

public java.lang.String getBuildNumber()

getBuildResults

public BuildResults getBuildResults()
Let the UI have the build results instance.

Specified by:
getBuildResults in interface BuildResultsAware
Returns:
The build results

setBuildResults

public void setBuildResults(BuildResults buildResults)
Specified by:
setBuildResults in interface BuildResultsAware

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Description copied from class: BambooActionSupport
Places the current user on the page

Overrides:
doExecute in class BambooActionSupport
Returns:
webwork success status
Throws:
java.lang.Exception - something nasty went wrong

isSortByDuration

public boolean isSortByDuration()

setSortByDuration

public void setSortByDuration(boolean b)

getSuccessfulTests

public TestResultDecorator getSuccessfulTests()

getBuildResultsFromContainer

protected BuildResults getBuildResultsFromContainer(Build build,
                                                    int currentBuildNumber)

getFailingSinceForTest

@Nullable
public BuildResultsSummary getFailingSinceForTest(BuildResults buildResults,
                                                           TestResults testResults)

getFailingSinceRelativeTime

@Nullable
public java.lang.String getFailingSinceRelativeTime(BuildResults buildResults,
                                                             TestResults testResults)
                                             throws java.io.IOException
Throws:
java.io.IOException

getFailingSinceRelativeTime

public java.lang.String getFailingSinceRelativeTime(BuildResultsSummary failingSinceSummary,
                                                    BuildResults buildResults)

getAgent

public BuildAgent getAgent(BuildResultsSummary summary)

errorMessage

protected java.lang.String errorMessage(Build build)

getNeighbouringSummaries

public java.util.List getNeighbouringSummaries()

getTriggerReasonLongDescriptionHtml

public java.lang.String getTriggerReasonLongDescriptionHtml(BuildResultsSummary buildResultsSummary)

getTestResultManager

public TestResultManager getTestResultManager()

setTestResultManager

public void setTestResultManager(TestResultManager testResultManager)

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)

getExtendedAuthorManager

public ExtendedAuthorManager getExtendedAuthorManager()

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

setTestManager

public void setTestManager(TestManager testManager)

getBuildStatusHelper

public BuildStatusHelper getBuildStatusHelper()

setTriggerReasonManager

public void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)

getTriggerReasonManager

public TriggerReasonManager getTriggerReasonManager()

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

getBuildManager

public BuildManager getBuildManager()
Overrides:
getBuildManager in class BambooActionSupport

setBuildManager

public void setBuildManager(BuildManager buildManager)
Overrides:
setBuildManager in class BambooActionSupport

getExtendedBuildResultsSummary

public ExtendedBuildResultsSummary getExtendedBuildResultsSummary()


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.