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.PlanActionSupport
              extended by com.atlassian.bamboo.build.PlanResultsAction
                  extended by com.atlassian.bamboo.build.BuildResultsAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BuildableAware, BuildResultsAware, BuildResultsSummaryAware, 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:
QuarantineTest, ViewBuildResults, ViewBuildResultsSuccessfulTests, ViewBuildResultsTests

public class BuildResultsAction
extends PlanResultsAction
implements BuildableAware, BuildResultsAware, BuildResultsSummaryAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  BuildExecutionManager buildExecutionManager
           
protected  BuildResults buildResults
           
protected  BuildResultsSummary buildResultsSummary
           
protected  BuildResultsSummaryManager buildResultsSummaryManager
           
 
Fields inherited from class com.atlassian.bamboo.build.PlanResultsAction
agentManager, artifactLinkManager, auditLogService, buildStatusHelper, extendedAuthorManager, failStartDate, jiraIssueManager, jiraIssueUtils, neighbouringSummaries, resultsSummary, testQuarantineManager, testsManager, triggerManager
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, jiraApplinksService, repositoryConfigurationService, resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, 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
BuildResultsAction()
           
 
Method Summary
 java.lang.String doExecute()
          Places the current user on the page
protected  java.lang.String errorMessage(ImmutableBuildable build)
           
 BuildAgent getAgent(BuildResultsSummary summary)
           
 BuildAgent getAgent(CurrentlyBuilding currentlyBuilding)
           
 Buildable getBuild()
          Deprecated. 
 java.lang.String getBuildResultKey()
           
 BuildResults getBuildResults()
          Let the UI have the build results instance.
protected  BuildResults getBuildResultsFromContainer(ImmutableBuildable buildable, int currentBuildNumber)
           
 BuildResultsSummary getBuildResultsSummary()
           
 CurrentlyBuilding getCurrentlyBuilding()
           
 BuildResultsSummary getFailingSinceForTest(TestCaseResult testCaseResult)
           
 java.lang.String getFailingSinceForTestString(BuildResultsSummary buildResultsSummary, TestCaseResult testCaseResult)
           
 java.lang.String getFailingSinceRelativeTime(BuildResultsSummary buildResultsSummary, BuildResultsSummary failingSinceSummary)
           
 ImmutableBuildable getImmutableBuild()
           
 void setBuild(ImmutableBuildable build)
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setBuildResultKey(java.lang.String buildResultKey)
           
 void setBuildResults(BuildResults buildResults)
           
 void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
           
 
Methods inherited from class com.atlassian.bamboo.build.PlanResultsAction
buildWebPanelContext, getArtifactLinkUrl, getBuildNumber, getBuildStatusHelper, getChainExecution, getCreateIssueAppLinkId, getExecutionStatus, getFailStartDate, getIssueDetails, getJiraIssueDetails, getJiraIssues, getLinkedJiraIssue, getLinkedJiraIssueForTestCase, getLinkedJiraIssues, getMaskedMetadata, getMaskedVariables, getNeighbouringSummaries, getNewIssueKey, getOauthLoginDanceUrl, getPreviousFailedStageResult, getRepositoryChangesetsWithNotBlankRevision, getRepositoryData, getResultsSummary, getShortJiraIssues, getShortJiraIssues, getSizeBoundedLinkedJiraIssues, getSkippedCommitsCount, getTestCaseResultOnMasterBranch, getTriggerReasonLongDescriptionHtml, getTriggerReasonLongDescriptionText, isAuditLoggingEnabled, isConfigChanged, isHideJiraTeaser, isOauthAuthenticationRequired, isSortByDuration, setAgentManager, setArtifactLinkManager, setAuditLogService, setBuildNumber, setChainExecutionManager, setCreateIssueAppLinkId, setExtendedAuthorManager, setJiraIssueManager, setJiraIssueUtils, setNewIssueKey, setResultsSummary, setSortByDuration, setTestQuarantineManager, setTestsManager, setTriggerManager
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
getBuildKey, getCurrentlyBuildingPlans, getErrorAccessor, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryConfigurationService, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getHelpPanels, 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, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, 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
getImmutablePlan, getMutablePlan, 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
 

Field Detail

buildResults

protected BuildResults buildResults

buildResultsSummary

protected BuildResultsSummary buildResultsSummary

buildResultsSummaryManager

protected BuildResultsSummaryManager buildResultsSummaryManager

buildExecutionManager

protected BuildExecutionManager buildExecutionManager
Constructor Detail

BuildResultsAction

public BuildResultsAction()
Method Detail

getImmutableBuild

public ImmutableBuildable getImmutableBuild()
Specified by:
getImmutableBuild in interface BuildableAware

getBuild

@Deprecated
public Buildable getBuild()
Deprecated. 

Specified by:
getBuild in interface BuildableAware

setBuild

public void setBuild(ImmutableBuildable build)
Specified by:
setBuild in interface BuildableAware

getBuildResultKey

public java.lang.String getBuildResultKey()

setBuildResultKey

public void setBuildResultKey(java.lang.String buildResultKey)

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

getBuildResultsSummary

public BuildResultsSummary getBuildResultsSummary()
Specified by:
getBuildResultsSummary in interface BuildResultsSummaryAware

setBuildResultsSummary

public void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
Specified by:
setBuildResultsSummary in interface BuildResultsSummaryAware

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

getBuildResultsFromContainer

protected BuildResults getBuildResultsFromContainer(@NotNull
                                                    ImmutableBuildable buildable,
                                                    int currentBuildNumber)

getFailingSinceForTest

@Nullable
public BuildResultsSummary getFailingSinceForTest(@Nullable
                                                           TestCaseResult testCaseResult)

getFailingSinceForTestString

@Nullable
public java.lang.String getFailingSinceForTestString(@Nullable
                                                              BuildResultsSummary buildResultsSummary,
                                                              @Nullable
                                                              TestCaseResult testCaseResult)

getFailingSinceRelativeTime

@NotNull
public java.lang.String getFailingSinceRelativeTime(@Nullable
                                                            BuildResultsSummary buildResultsSummary,
                                                            @Nullable
                                                            BuildResultsSummary failingSinceSummary)

getAgent

@Nullable
public BuildAgent getAgent(BuildResultsSummary summary)

getAgent

@Nullable
public BuildAgent getAgent(@Nullable
                                    CurrentlyBuilding currentlyBuilding)

errorMessage

protected java.lang.String errorMessage(ImmutableBuildable build)

getCurrentlyBuilding

public CurrentlyBuilding getCurrentlyBuilding()

setBuildExecutionManager

public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.