com.atlassian.bamboo.ww2.actions.build.admin.create
Class CreateChain

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.build.admin.create.CreateChain
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BareBuildConfigurationAware, BuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalCreatePlanSecurityAware, GlobalReadSecurityAware, PlanAware, PlanLimitAware, 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

public class CreateChain
extends BambooActionSupport
implements GlobalCreatePlanSecurityAware, PlanLimitAware, BuildConfigurationAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
static java.lang.String JOB_KEY
           
static java.lang.String JOB_NAME
           
static java.lang.String STAGE_NAME
           
 
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
CreateChain()
           
 
Method Summary
 java.lang.String doCloneBuild()
           
 java.lang.String doCreateBuild()
           
 java.lang.String doDefault()
          Default action just sends to the input
 java.util.Collection<java.lang.String> getAvailableJdks()
           
 BuildConfiguration getBuildConfiguration()
           
 java.lang.String getBuildKey()
           
 java.lang.String getExistingProjectKey()
           
 ImmutablePlan getImmutablePlan()
           
 java.lang.String getJobKey()
           
 Plan getMutablePlan()
           
 Plan getPlan()
          Deprecated. 
 java.lang.String getPlanKeyToClone()
           
 java.util.Collection<ImmutableChain> getPlansToClone()
           
 java.lang.String getRepositoryPluginKeys()
           
 UIConfigBean getUiConfigBean()
           
 boolean isClonePlan()
           
 boolean isPlanLimitReached()
          Allows UI to check whether the plan limit has been reached
 void setBuildConfiguration(BuildConfiguration buildConfiguration)
           
 void setBuildKey(java.lang.String buildKey)
           
 void setBuildStrategyConfigHelper(BuildStrategyConfigHelper buildStrategyConfigHelper)
           
 void setChainCreationService(ChainCreationService chainCreationService)
           
 void setClonePlan(boolean clonePlan)
           
 void setExistingProjectKey(java.lang.String existingProjectKey)
           
 void setJdkManager(JdkManager jdkManager)
           
 void setJobCreationService(JobCreationService jobCreationService)
           
 void setPlan(ImmutablePlan plan)
           
 void setPlanKeyToClone(java.lang.String planKeyToClone)
           
 void setPlanLimitReached()
          Called if the interceptor detects that the plan limit has been exhausted.
 void setRepositoryConfigHelper(RepositoryConfigHelper repositoryConfigHelper)
           
 void setUiConfigBean(UIConfigBean uiConfigBean)
           
 void setWebRepositoryConfigHelper(WebRepositoryConfigHelper webRepositoryConfigHelper)
           
 void validate()
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, 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, getSecuredDomainObject, 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, setPlanExecutionManager, 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

STAGE_NAME

public static final java.lang.String STAGE_NAME
See Also:
Constant Field Values

JOB_NAME

public static final java.lang.String JOB_NAME
See Also:
Constant Field Values

JOB_KEY

public static final java.lang.String JOB_KEY
See Also:
Constant Field Values
Constructor Detail

CreateChain

public CreateChain()
Method Detail

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

doCloneBuild

public java.lang.String doCloneBuild()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doCreateBuild

public java.lang.String doCreateBuild()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getAvailableJdks

public java.util.Collection<java.lang.String> getAvailableJdks()

getBuildConfiguration

public BuildConfiguration getBuildConfiguration()
Specified by:
getBuildConfiguration in interface BareBuildConfigurationAware

getRepositoryPluginKeys

@NotNull
public java.lang.String getRepositoryPluginKeys()

setBuildConfiguration

public void setBuildConfiguration(BuildConfiguration buildConfiguration)
Specified by:
setBuildConfiguration in interface BareBuildConfigurationAware

getImmutablePlan

public ImmutablePlan getImmutablePlan()
Specified by:
getImmutablePlan in interface PlanAware

getPlan

@Deprecated
public Plan getPlan()
Deprecated. 

Specified by:
getPlan in interface PlanAware

getMutablePlan

public Plan getMutablePlan()
Specified by:
getMutablePlan in interface PlanAware

setPlan

public void setPlan(ImmutablePlan plan)
Specified by:
setPlan in interface PlanAware

getBuildKey

public java.lang.String getBuildKey()

setBuildKey

public void setBuildKey(java.lang.String buildKey)

setPlanLimitReached

public void setPlanLimitReached()
Description copied from interface: PlanLimitAware
Called if the interceptor detects that the plan limit has been exhausted. Its up to the actions as to how they react

Specified by:
setPlanLimitReached in interface PlanLimitAware

isPlanLimitReached

public boolean isPlanLimitReached()
Description copied from interface: PlanLimitAware
Allows UI to check whether the plan limit has been reached

Specified by:
isPlanLimitReached in interface PlanLimitAware
Returns:
true if the plan limit has been reached or not.

getJobKey

public java.lang.String getJobKey()

isClonePlan

public boolean isClonePlan()

setClonePlan

public void setClonePlan(boolean clonePlan)

getPlanKeyToClone

public java.lang.String getPlanKeyToClone()

setPlanKeyToClone

public void setPlanKeyToClone(java.lang.String planKeyToClone)

getExistingProjectKey

public java.lang.String getExistingProjectKey()

setExistingProjectKey

public void setExistingProjectKey(java.lang.String existingProjectKey)

getPlansToClone

@NotNull
public java.util.Collection<ImmutableChain> getPlansToClone()
Returns:
all builds that are available to the current user to be cloned

setUiConfigBean

public void setUiConfigBean(UIConfigBean uiConfigBean)

getUiConfigBean

public UIConfigBean getUiConfigBean()

setJdkManager

public void setJdkManager(JdkManager jdkManager)

setRepositoryConfigHelper

public void setRepositoryConfigHelper(RepositoryConfigHelper repositoryConfigHelper)

setBuildStrategyConfigHelper

public void setBuildStrategyConfigHelper(BuildStrategyConfigHelper buildStrategyConfigHelper)

setWebRepositoryConfigHelper

public void setWebRepositoryConfigHelper(WebRepositoryConfigHelper webRepositoryConfigHelper)

setChainCreationService

public void setChainCreationService(ChainCreationService chainCreationService)

setJobCreationService

public void setJobCreationService(JobCreationService jobCreationService)


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