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

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.CreateTopLevelPlan
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, 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 CreateTopLevelPlan
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
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, 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
CreateTopLevelPlan()
           
 
Method Summary
 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.util.Collection<Chain> getChainsToClone()
           
 java.lang.String getEditHtml(Builder builder)
           
 Plan getPlan()
           
 java.util.Collection<Build> getPlansToClone()
           
 java.util.Map<java.lang.String,PlanCreationService> getPlanTypes()
           
 java.lang.String getSelectedPlanType()
           
 UIConfigBean getUiConfigBean()
           
 boolean isPlanLimitReached()
          Allows UI to check whether the plan limit has been reached
 void setBuildConfiguration(BuildConfiguration buildConfiguration)
           
 void setBuildCreationService(PlanCreationService buildCreationService)
           
 void setBuildKey(java.lang.String buildKey)
           
 void setChainCreationService(PlanCreationService chainCreationService)
           
 void setJdkManager(JdkManager jdkManager)
           
 void setPlan(Plan plan)
           
 void setPlanLimitReached()
          Called if the interceptor detects that the plan limit has been exhausted.
 void setPlanManager(PlanManager planManager)
           
 void setSelectedPlanType(java.lang.String selectedPlanType)
           
 void setUiConfigBean(UIConfigBean uiConfigBean)
           
 void validate()
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, 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, getSecuredDomainObject, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanExecutionManager, setPluginAccessor, 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
 
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, getFieldErrors
 

Constructor Detail

CreateTopLevelPlan

public CreateTopLevelPlan()
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

doCreateBuild

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

getEditHtml

public java.lang.String getEditHtml(Builder builder)

getAvailableJdks

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

getBuildConfiguration

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

setBuildConfiguration

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

getPlan

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

setPlan

public void setPlan(Plan 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()
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.

getPlansToClone

@NotNull
public java.util.Collection<Build> getPlansToClone()
Returns:
all builds that are available to be cloned on the system(Does this follow permissions???)

getChainsToClone

public java.util.Collection<Chain> getChainsToClone()

setPlanManager

public void setPlanManager(PlanManager planManager)
Overrides:
setPlanManager in class BambooActionSupport

setUiConfigBean

public void setUiConfigBean(UIConfigBean uiConfigBean)

getUiConfigBean

public UIConfigBean getUiConfigBean()

setJdkManager

public void setJdkManager(JdkManager jdkManager)

setBuildCreationService

public void setBuildCreationService(PlanCreationService buildCreationService)

setChainCreationService

public void setChainCreationService(PlanCreationService chainCreationService)

getPlanTypes

public java.util.Map<java.lang.String,PlanCreationService> getPlanTypes()

getSelectedPlanType

public java.lang.String getSelectedPlanType()

setSelectedPlanType

public void setSelectedPlanType(java.lang.String selectedPlanType)


Copyright © 2011 Atlassian. All Rights Reserved.