com.atlassian.bamboo.build
Class PlanResultsAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.ww2.actions.PlanActionSupport
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
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 |
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 |
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
PlanResultsAction
public PlanResultsAction()
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
WebPanel
s 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.