com.atlassian.bamboo.ww2.actions.chains
Class StageAction

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
                  extended by com.atlassian.bamboo.ww2.actions.chains.StageAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanEditSecurityAware, 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:
AddStageAction, DeleteStageAction

public class StageAction
extends ChainActionSupport
implements PlanEditSecurityAware

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  java.lang.String stageDescription
           
protected  java.lang.String stageId
           
protected  boolean stageManual
           
protected  java.lang.String stageName
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.ChainActionSupport
chainBranchManager, chainExecutionManager, deploymentProjectService, executableAgentsHelper, 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
StageAction()
           
 
Method Summary
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
          Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildStageJsonObject()
           
 java.lang.String doDefault()
          Default action just sends to the input
 java.lang.String doExecute()
          Places the current user on the page
 java.lang.String getAgentUnavailabilityHint(ImmutableJob job)
           
 java.util.List<DeploymentProject> getRelatedDeploymentProjects()
           
 java.lang.String getStageDescription()
           
 java.lang.String getStageId()
           
 java.lang.String getStageName()
           
 boolean isStageManual()
           
 void setAuditLogService(AuditLogService auditLogService)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setPlanValidationService(PlanValidationService planValidationService)
           
 void setStageDescription(java.lang.String stageDescription)
           
 void setStageId(java.lang.String stageId)
           
 void setStageManual(boolean stageManual)
           
 void setStageName(java.lang.String stageName)
           
 void validate()
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.ChainActionSupport
getBranchIdentifiers, getChain, getChainBranches, getChainBranchesByDate, getChainResult, getChainResultNumber, getErrorAccessor, getImmutableChain, getImmutableChainBranches, getImmutableChainStage, getMutableChain, getMutableChainStage, getSiblingBranchIdentifiers, getStageStatusHelper, setAggregatedChainErrorAccessor, setChain, setChainBranchManager, setChainExecutionManager, setChainResult, setChainResultNumber, setChainStage, setDeploymentProjectService, setExecutableAgentsHelper, setStageStatusHelper
 
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, checkFieldXssSafety, createFieldValidator, 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, 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
 
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
 

Field Detail

stageId

protected java.lang.String stageId

stageName

protected java.lang.String stageName

stageDescription

protected java.lang.String stageDescription

stageManual

protected boolean stageManual

auditLogService

protected AuditLogService auditLogService
Constructor Detail

StageAction

public StageAction()
Method Detail

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

buildStageJsonObject

@NotNull
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildStageJsonObject()
                                                                            throws com.opensymphony.webwork.dispatcher.json.JSONException
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException

buildJsonObject

@NotNull
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
                                                                       throws com.opensymphony.webwork.dispatcher.json.JSONException
Description copied from class: BambooActionSupport
Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.

Overrides:
buildJsonObject in class BambooActionSupport
Returns:
Initialized JSONObject
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Description copied from class: BambooActionSupport
Default action just sends to the input

Overrides:
doDefault in class BambooActionSupport
Throws:
java.lang.Exception

validate

public void validate()
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

getAgentUnavailabilityHint

@Nullable
public java.lang.String getAgentUnavailabilityHint(@NotNull
                                                            ImmutableJob job)

getRelatedDeploymentProjects

public java.util.List<DeploymentProject> getRelatedDeploymentProjects()

getStageName

@Nullable
public java.lang.String getStageName()

setStageName

public void setStageName(java.lang.String stageName)

getStageDescription

@Nullable
public java.lang.String getStageDescription()

setStageDescription

public void setStageDescription(java.lang.String stageDescription)

isStageManual

public boolean isStageManual()

setStageManual

public void setStageManual(boolean stageManual)

getStageId

public java.lang.String getStageId()

setStageId

public void setStageId(java.lang.String stageId)

setPlanValidationService

public void setPlanValidationService(PlanValidationService planValidationService)

setElasticFunctionalityFacade

public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)

setAuditLogService

public void setAuditLogService(AuditLogService auditLogService)


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