com.atlassian.bamboo.ww2.actions
Class ChainActionSupport

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.ww2.actions.ChainActionSupport
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanAware, ProjectAware, 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:
AbstractContinuableBuildAction, ConfigureBranches, ConfigureBuildRepository, ConfigureChainNotification, ConfigureChainTriggers, CreateChainBranch, CreateJob, DetectBranches, EditChainBranchDetails, EditChainBranchNotifications, EditChainDetails, ListChainResults, ListJobsForChain, MoveJobAction, MoveStageAction, StageAction, TriggerManualBuild, ViewAggregatedJobPlugins, ViewChainBranches, ViewChainConfiguration, ViewChainSummary, ViewMaven2ChainSummary

public class ChainActionSupport
extends PlanActionSupport
implements ChainAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  ChainBranchManager chainBranchManager
           
protected  ChainExecutionManager chainExecutionManager
           
protected  DeploymentProjectService deploymentProjectService
           
protected  ExecutableAgentsHelper executableAgentsHelper
           
protected  StageStatusHelper stageStatusHelper
           
 
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, 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
ChainActionSupport()
           
 
Method Summary
 java.util.List<PlanIdentifier> getBranchIdentifiers()
           
 Chain getChain()
          Deprecated. 
 java.util.List<ChainBranch> getChainBranches()
           
 com.google.common.collect.ImmutableList<ImmutableChainBranch> getChainBranchesByDate()
           
 ChainResultsSummary getChainResult()
           
 int getChainResultNumber()
           
 ErrorAccessor getErrorAccessor()
          Uses the AggregatedChainErrorAccessor to provide errors for all Jobs of a Chain
 ImmutableChain getImmutableChain()
           
 java.util.List<ImmutableChainBranch> getImmutableChainBranches()
           
 ImmutableChainStage getImmutableChainStage()
           
 Chain getMutableChain()
           
 ChainStage getMutableChainStage()
           
 java.util.List<PlanIdentifier> getSiblingBranchIdentifiers()
           
 StageStatusHelper getStageStatusHelper()
           
 void setAggregatedChainErrorAccessor(AggregatedChainErrorAccessor aggregatedChainErrorAccessor)
           
 void setChain(ImmutableChain chain)
           
 void setChainBranchManager(ChainBranchManager chainBranchManager)
           
 void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
           
 void setChainResult(ChainResultsSummary chainResult)
           
 void setChainResultNumber(int chainResultNumber)
           
 void setChainStage(ImmutableChainStage chainStage)
           
 void setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
           
 void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)
           
 void setStageStatusHelper(StageStatusHelper stageStatusHelper)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setBuildNumber, 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, doExecute, 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, 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.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

chainExecutionManager

protected ChainExecutionManager chainExecutionManager

stageStatusHelper

protected StageStatusHelper stageStatusHelper

executableAgentsHelper

protected ExecutableAgentsHelper executableAgentsHelper

chainBranchManager

protected ChainBranchManager chainBranchManager

deploymentProjectService

protected DeploymentProjectService deploymentProjectService
Constructor Detail

ChainActionSupport

public ChainActionSupport()
Method Detail

getImmutableChain

public ImmutableChain getImmutableChain()
Specified by:
getImmutableChain in interface ChainAware

getChain

@Deprecated
public Chain getChain()
Deprecated. 

Specified by:
getChain in interface ChainAware

getMutableChain

public Chain getMutableChain()

setChain

public void setChain(ImmutableChain chain)
Specified by:
setChain in interface ChainAware

getImmutableChainStage

@Nullable
public ImmutableChainStage getImmutableChainStage()
Specified by:
getImmutableChainStage in interface ChainAware

getMutableChainStage

public ChainStage getMutableChainStage()

setChainStage

public void setChainStage(ImmutableChainStage chainStage)
Specified by:
setChainStage in interface ChainAware

getChainResult

public ChainResultsSummary getChainResult()
Specified by:
getChainResult in interface ChainAware

setChainResult

public void setChainResult(ChainResultsSummary chainResult)
Specified by:
setChainResult in interface ChainAware

getChainResultNumber

public int getChainResultNumber()
Specified by:
getChainResultNumber in interface ChainAware

setChainResultNumber

public void setChainResultNumber(int chainResultNumber)
Specified by:
setChainResultNumber in interface ChainAware

setChainExecutionManager

public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)

getStageStatusHelper

public StageStatusHelper getStageStatusHelper()

setStageStatusHelper

public void setStageStatusHelper(StageStatusHelper stageStatusHelper)

setExecutableAgentsHelper

public void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)

getErrorAccessor

public ErrorAccessor getErrorAccessor()
Uses the AggregatedChainErrorAccessor to provide errors for all Jobs of a Chain

Overrides:
getErrorAccessor in class PlanActionSupport
Returns:
errorAccessor

setAggregatedChainErrorAccessor

public void setAggregatedChainErrorAccessor(AggregatedChainErrorAccessor aggregatedChainErrorAccessor)

getChainBranches

public java.util.List<ChainBranch> getChainBranches()

getImmutableChainBranches

public java.util.List<ImmutableChainBranch> getImmutableChainBranches()

getChainBranchesByDate

public com.google.common.collect.ImmutableList<ImmutableChainBranch> getChainBranchesByDate()

getBranchIdentifiers

public java.util.List<PlanIdentifier> getBranchIdentifiers()
Returns:
list of ChainBranchIdentifier for all branches in given chain including master branch

getSiblingBranchIdentifiers

public java.util.List<PlanIdentifier> getSiblingBranchIdentifiers()
Returns:
list of ChainBranchIdentifier for all branches in given chain

setChainBranchManager

public void setChainBranchManager(ChainBranchManager chainBranchManager)

setDeploymentProjectService

public void setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
Overrides:
setDeploymentProjectService in class BambooActionSupport


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