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, 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:
AbstractRestPlanResults, 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  AuditLogService auditLogService
           
protected  BuildStatusHelper buildStatusHelper
           
protected  ExtendedAuthorManager extendedAuthorManager
           
protected  JiraIssueManager jiraIssueManager
           
protected  JiraIssueUtils jiraIssueUtils
           
protected  LocalAgentManager localAgentManager
           
protected  java.util.List<ResultsSummary> neighbouringSummaries
           
protected  com.atlassian.plugin.PluginManager pluginManager
           
protected  ResultsSummary resultsSummary
           
protected  TestsManager testsManager
           
protected  TriggerReasonManager triggerReasonManager
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, buildManager, commentManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, planManager, projectManager
 
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
 java.lang.Integer getBuildNumber()
           
 BuildStatusHelper getBuildStatusHelper()
           
 java.util.List<Comment> getCommentsForPlanResult(ResultsSummary resultsSummary)
           
 ExecutionStatus getExecutionStatus()
           
 ExtendedAuthorManager getExtendedAuthorManager()
           
protected  java.util.Collection<LinkedJiraIssue> getIssueDetails(java.util.Collection<LinkedJiraIssue> linkedIssues)
           
 java.util.Collection<LinkedJiraIssue> getJiraIssues()
           
 java.util.Collection<LinkedJiraIssue> getLinkedJiraIssues()
           
 LocalAgentManager getLocalAgentManager()
           
 java.util.List<ResultsSummary> getNeighbouringSummaries()
           
 com.atlassian.plugin.PluginManager getPluginManager()
           
 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

 TestsManager getTestsManager()
           
 java.lang.String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
           
 TriggerReasonManager getTriggerReasonManager()
           
 boolean isSortByDuration()
           
 void setAuditLogService(AuditLogService auditLogService)
           
 void setBuildNumber(java.lang.Integer buildNumber)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setJiraIssueManager(JiraIssueManager jiraIssueManager)
           
 void setJiraIssueUtils(JiraIssueUtils jiraIssueUtils)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setResultsSummary(ResultsSummary buildResults)
           
 void setSortByDuration(boolean b)
           
 void setTestsManager(TestsManager testsManager)
           
 void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
getBuildKey, getCurrentlyBuildingPlans, getErrorAccessor, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, hasPlanResultComments, setBuildKey, setErrorAccessor, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
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, getBuildManager, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedErrorMessages, getInstanceName, getJsonObject, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setBuildManager, setCheckBoxFields, setCommentManager, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setPlanManager, setProjectManager, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, 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

triggerReasonManager

protected TriggerReasonManager triggerReasonManager

localAgentManager

protected LocalAgentManager localAgentManager

jiraIssueManager

protected JiraIssueManager jiraIssueManager

jiraIssueUtils

protected JiraIssueUtils jiraIssueUtils

testsManager

protected TestsManager testsManager

auditLogService

protected AuditLogService auditLogService

buildStatusHelper

protected BuildStatusHelper buildStatusHelper

resultsSummary

protected ResultsSummary resultsSummary
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

getPluginManager

public com.atlassian.plugin.PluginManager getPluginManager()

setPluginManager

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

getNeighbouringSummaries

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

getTriggerReasonLongDescriptionHtml

public java.lang.String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)

getLinkedJiraIssues

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

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.Collection<LinkedJiraIssue> getJiraIssues()

getIssueDetails

protected java.util.Collection<LinkedJiraIssue> getIssueDetails(java.util.Collection<LinkedJiraIssue> linkedIssues)

getCommentsForPlanResult

public java.util.List<Comment> getCommentsForPlanResult(ResultsSummary resultsSummary)

setJiraIssueManager

public void setJiraIssueManager(JiraIssueManager jiraIssueManager)

getExtendedAuthorManager

public ExtendedAuthorManager getExtendedAuthorManager()

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

getTriggerReasonManager

public TriggerReasonManager getTriggerReasonManager()

setTriggerReasonManager

public void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)

setJiraIssueUtils

public void setJiraIssueUtils(JiraIssueUtils jiraIssueUtils)

getLocalAgentManager

public LocalAgentManager getLocalAgentManager()

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

getTestsManager

public TestsManager getTestsManager()

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

isSortByDuration

public boolean isSortByDuration()

setSortByDuration

public void setSortByDuration(boolean b)

getBuildStatusHelper

public BuildStatusHelper getBuildStatusHelper()

setAuditLogService

public void setAuditLogService(AuditLogService auditLogService)

getExecutionStatus

public ExecutionStatus getExecutionStatus()


Copyright © 2010 Atlassian. All Rights Reserved.