java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.bamboo.ww2.BambooActionSupport
       ↳ com.atlassian.bamboo.ww2.actions.PlanActionSupport
         ↳ com.atlassian.bamboo.ww2.actions.ChainActionSupport
           ↳ com.atlassian.bamboo.ww2.actions.chains.CreateJob

Summary

Constants
String BUILD_KEY
String CHAIN_KEY_TO_CLONE
String CLONE_JOB
String EXISTING_STAGE
String JOB_KEY_TO_CLONE
[Expand]
Inherited Constants
From class com.atlassian.bamboo.ww2.BambooActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.bamboo.ww2.actions.ChainActionSupport
From class com.atlassian.bamboo.ww2.actions.PlanActionSupport
From class com.atlassian.bamboo.ww2.BambooActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
CreateJob()
Public Methods
String doCloneJob()
String doCreateJob()
String doDefault()
Default action just sends to the input@return
Collection<String> getAvailableJdks()
BuildConfiguration getBuildConfiguration()
String getChainKeyToClone()
Collection<ImmutableChain> getChainsToClone()
Multimap<ChainStageJob> getJobsContainingInvalidSubscriptions()
@NotNull List<ImmutableJob> getJobsToClone()
Used on first render for functional tests
Plan getPlan()
String getSubBuildKey()
UIConfigBean getUiConfigBean()
List<ArtifactSubscription> getUnclonableSubscriptions()
boolean isAllowStageCreation()
boolean isIgnoreUnclonableSubscriptions()
boolean isPlanLimitReached()
Allows UI to check whether the plan limit has been reached
void setAllowStageCreation(boolean allowStageCreation)
void setArtifactSubscriptionManager(ArtifactSubscriptionManager artifactSubscriptionManager)
void setBuildConfiguration(BuildConfiguration buildConfiguration)
void setIgnoreUnclonableSubscriptions(boolean ignoreUnclonableSubscriptions)
void setJdkManager(JdkManager jdkManager)
void setJobCreationService(JobCreationService jobCreationService)
void setPlan(Plan plan)
void setPlanLimitReached()
Called if the interceptor detects that the plan limit has been exhausted.
void setSubBuildKey(String subBuildKey)
void setUiConfigBean(UIConfigBean uiConfigBean)
void validate()
[Expand]
Inherited Methods
From class com.atlassian.bamboo.ww2.actions.ChainActionSupport
From class com.atlassian.bamboo.ww2.actions.PlanActionSupport
From class com.atlassian.bamboo.ww2.BambooActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.bamboo.utils.error.ErrorCollection
From interface com.atlassian.bamboo.ww2.aware.BambooSessionAware
From interface com.atlassian.bamboo.ww2.aware.BuildConfigurationAware
From interface com.atlassian.bamboo.ww2.aware.ChainAware
From interface com.atlassian.bamboo.ww2.aware.NavigationAware
From interface com.atlassian.bamboo.ww2.aware.PlanAware
From interface com.atlassian.bamboo.ww2.aware.PlanLimitAware
From interface com.atlassian.bamboo.ww2.aware.ProjectAware
From interface com.atlassian.bamboo.ww2.aware.ReturnUrlAware
From interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
From interface com.atlassian.core.i18n.I18nTextProvider
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware
From interface com.uwyn.rife.continuations.ContinuableObject

Constants

public static final String BUILD_KEY

Constant Value: "buildKey"

public static final String CHAIN_KEY_TO_CLONE

Constant Value: "chainKeyToClone"

public static final String CLONE_JOB

Constant Value: "cloneJob"

public static final String EXISTING_STAGE

Constant Value: "existingStage"

public static final String JOB_KEY_TO_CLONE

Constant Value: "jobKeyToClone"

Public Constructors

public CreateJob ()

Public Methods

public String doCloneJob ()

Throws
Exception

public String doCreateJob ()

public String doDefault ()

Default action just sends to the input@return

Throws
Exception

public Collection<String> getAvailableJdks ()

public BuildConfiguration getBuildConfiguration ()

public String getChainKeyToClone ()

public Collection<ImmutableChain> getChainsToClone ()

public Multimap<ChainStageJob> getJobsContainingInvalidSubscriptions ()

@NotNull public List<ImmutableJob> getJobsToClone ()

Used on first render for functional tests

Returns
  • all builds that are available to be cloned on the system(Does this follow permissions???)

public Plan getPlan ()

public String getSubBuildKey ()

public UIConfigBean getUiConfigBean ()

public List<ArtifactSubscription> getUnclonableSubscriptions ()

public boolean isAllowStageCreation ()

public boolean isIgnoreUnclonableSubscriptions ()

public boolean isPlanLimitReached ()

Allows UI to check whether the plan limit has been reached

Returns
  • true if the plan limit has been reached or not.

public void setAllowStageCreation (boolean allowStageCreation)

public void setArtifactSubscriptionManager (ArtifactSubscriptionManager artifactSubscriptionManager)

public void setBuildConfiguration (BuildConfiguration buildConfiguration)

public void setIgnoreUnclonableSubscriptions (boolean ignoreUnclonableSubscriptions)

public void setJdkManager (JdkManager jdkManager)

public void setJobCreationService (JobCreationService jobCreationService)

public void setPlan (Plan plan)

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

public void setSubBuildKey (String subBuildKey)

public void setUiConfigBean (UIConfigBean uiConfigBean)

public void validate ()