Class CreateJob
- java.lang.Object
-
- com.opensymphony.xwork2.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
-
- All Implemented Interfaces:
JsonStreamingAction,ErrorCollection,BambooSessionAware,BareBuildConfigurationAware,BuildConfigurationAware,ChainAware,NavigationAware,DomainObjectSecurityAware,GlobalReadSecurityAware,PlanAdminSecurityAware,PlanAware,PlanLimitAware,ProjectAware,ReturnUrlAware,com.atlassian.core.i18n.I18nTextProvider,com.atlassian.struts.TextProvider,com.atlassian.struts.ValidationAware,com.opensymphony.xwork.ValidationAware,com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable
public class CreateJob extends ChainActionSupport implements PlanLimitAware, PlanAdminSecurityAware, BuildConfigurationAware
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUILD_KEYstatic StringCHAIN_KEY_TO_CLONEstatic StringCLONE_JOBstatic StringEXISTING_STAGEstatic StringJOB_KEY_TO_CLONE-
Fields inherited from class com.atlassian.bamboo.ww2.actions.ChainActionSupport
chainBranchManager, chainExecutionManager, executableAgentsHelper, stageStatusHelper
-
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, jiraApplinksService, repositoryDefinitionManager, resultsSummaryManager, vcsRepositoryConfigurationService
-
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, deploymentProjectService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description CreateJob()
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.ww2.actions.ChainActionSupport
getBranchIdentifiers, getChain, getChainBranches, getChainBranchesByDate, getChainResult, getChainResultNumber, getErrorAccessor, getImmutableChain, getImmutableChainBranches, getImmutableChainStage, getMutableChain, getMutableChainStage, getSiblingBranchIdentifiers, getStageStatusHelper, setChain, setChainBranchManager, setChainExecutionManager, setChainResult, setChainResultNumber, setChainStage, setDecoratingAggregatedChainErrorAccessor, setExecutableAgentsHelper, setStageStatusHelper
-
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getFirstNotRunnableStage, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isContinuable, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildContextFactory, setBuildKey, setBuildNumber, setDecoratingErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryDefinitionManager, setResultsSummaryManager, setVcsRepositoryConfigurationService
-
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNodeLifecycleState, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getRandomString, getReturnUrl, getSessionUser, getText, getText, 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, hasPlanPermission, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJson
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, 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
getAllErrorMessages
-
Methods inherited from interface com.atlassian.bamboo.ww2.aware.PlanAware
getImmutablePlan, getMutablePlan, getPlan, setPlan
-
-
-
-
Field Detail
-
EXISTING_STAGE
public static final String EXISTING_STAGE
- See Also:
- Constant Field Values
-
BUILD_KEY
public static final String BUILD_KEY
- See Also:
- Constant Field Values
-
CLONE_JOB
public static final String CLONE_JOB
- See Also:
- Constant Field Values
-
JOB_KEY_TO_CLONE
public static final String JOB_KEY_TO_CLONE
- See Also:
- Constant Field Values
-
CHAIN_KEY_TO_CLONE
public static final String CHAIN_KEY_TO_CLONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doDefault
public String doDefault() throws Exception
Description copied from class:BambooActionSupportDefault action just sends to the input- Overrides:
doDefaultin classBambooActionSupport- Throws:
Exception
-
validate
public void validate()
- Specified by:
validatein interfacecom.opensymphony.xwork2.Validateable- Overrides:
validatein classcom.opensymphony.xwork2.ActionSupport
-
createJob
public String createJob()
-
cloneJob
public String cloneJob()
-
getChainsToClone
public Collection<ImmutableChain> getChainsToClone()
-
getJobsToClone
@NotNull public @NotNull 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???)
-
getBuildConfiguration
public BuildConfiguration getBuildConfiguration()
- Specified by:
getBuildConfigurationin interfaceBareBuildConfigurationAware
-
setBuildConfiguration
public void setBuildConfiguration(BuildConfiguration buildConfiguration)
- Specified by:
setBuildConfigurationin interfaceBareBuildConfigurationAware
-
getSubBuildKey
public String getSubBuildKey()
-
setSubBuildKey
public void setSubBuildKey(String subBuildKey)
-
getIsolationType
public String getIsolationType()
-
setIsolationType
public void setIsolationType(String jobRunEnvironmentIsolation)
-
getChainKeyToClone
public String getChainKeyToClone()
-
isPlanLimitReached
public boolean isPlanLimitReached()
Description copied from interface:PlanLimitAwareAllows UI to check whether the plan limit has been reached- Specified by:
isPlanLimitReachedin interfacePlanLimitAware- Returns:
- true if the plan limit has been reached or not.
-
setPlanLimitReached
public void setPlanLimitReached()
Description copied from interface:PlanLimitAwareCalled if the interceptor detects that the plan limit has been exhausted. Its up to the actions as to how they react- Specified by:
setPlanLimitReachedin interfacePlanLimitAware
-
getUnclonableSubscriptions
public List<ArtifactSubscription> getUnclonableSubscriptions()
-
isIgnoreUnclonableSubscriptions
public boolean isIgnoreUnclonableSubscriptions()
-
setIgnoreUnclonableSubscriptions
public void setIgnoreUnclonableSubscriptions(boolean ignoreUnclonableSubscriptions)
-
getUiConfigBean
public UIConfigSupport getUiConfigBean()
-
setUiConfigBean
public void setUiConfigBean(UIConfigSupport uiConfigBean)
-
setJdkManager
public void setJdkManager(JdkManager jdkManager)
-
setArtifactSubscriptionManager
public void setArtifactSubscriptionManager(ArtifactSubscriptionManager artifactSubscriptionManager)
-
getAvailableJdks
public Collection<String> getAvailableJdks()
-
isAllowStageCreation
public boolean isAllowStageCreation()
-
setAllowStageCreation
public void setAllowStageCreation(boolean allowStageCreation)
-
setJobCreationService
public void setJobCreationService(JobCreationService jobCreationService)
-
getJobsContainingInvalidSubscriptions
public com.google.common.collect.Multimap<ChainStage,Job> getJobsContainingInvalidSubscriptions()
-
getDockerHandlers
public List<DockerConfigurationProviders.Config> getDockerHandlers()
-
-