Class ImportMavenPlanAction
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.ww2.actions.admin.ImportMavenPlanAction
- All Implemented Interfaces:
JsonStreamingAction,ErrorCollection,BambooSessionAware,BareBuildConfigurationAware,BuildConfigurationAware,NavigationAware,DomainObjectSecurityAware,GlobalCreatePlanSecurityAware,GlobalReadSecurityAware,PlanAware,PlanLimitAware,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.Preparable,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.Preparable,org.apache.struts2.Validateable
- Direct Known Subclasses:
ImportMavenPlanCheckoutPomAction,ImportMavenPlanCreatePlanAction
public abstract class ImportMavenPlanAction
extends BambooActionSupport
implements GlobalCreatePlanSecurityAware, BuildConfigurationAware, com.opensymphony.xwork2.Preparable, PlanLimitAware
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatusNested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BuildConfigurationprotected ChainCreationServiceprotected CustomVariableContextprotected Stringprotected static final Stringprotected booleanprotected PlanValidationServiceprotected Stringprotected Stringprotected Stringprotected RepositoryDefinitionManagerprotected TaskManagerprotected UIConfigSupportprotected VariableSubstitutorFactoryprotected VcsRepositoryConfigurationServiceprotected VcsRepositoryManagerprotected List<VcsUIConfigBean.VcsTypeSelector>protected VcsUIConfigBeanprotected VcsViewerUIConfigBeanFields 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, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn available Maven 2/3 buildersprotected Stringprotected StringgetPlan()Deprecated.since 4.4protected Stringprotected abstract voidinitVcsTypeSelectors(@NotNull TaskRenderMode renderMode) booleanAllows UI to check whether the plan limit has been reachedvoidprepare()voidsetBuildConfiguration(BuildConfiguration buildConfiguration) voidsetExistingProjectKey(String existingProjectKey) voidsetPlan(ImmutablePlan plan) voidCalled if the interceptor detects that the plan limit has been exhausted.voidsetProjectDescription(String projectDescription) voidsetProjectKey(String projectKey) voidsetProjectName(String projectName) voidvalidate()Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionErrors, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBambooContainer, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getCheckBoxFields, getConcurrentBuildExecutionStrategyOptions, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDecorator, 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, getSecuredDomainObject, 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, hasPlanPermission, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedEnvironmentService, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJsonMethods inherited from class org.apache.struts2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.action.Action
executeMethods inherited from interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObjectMethods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessagesMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
PLAN_CREATION_DENIED_ERROR
- See Also:
-
existingProjectKey
-
projectKey
-
projectName
-
projectDescription
-
planLimitReached
protected boolean planLimitReached -
buildConfiguration
-
vcsTypeSelectors
-
taskManager
-
planValidationService
-
chainCreationService
-
customVariableContext
-
variableSubstitutorFactory
-
vcsRepositoryManager
-
vcsUIConfigBean
-
repositoryDefinitionManager
-
vcsRepositoryConfigurationService
-
uiConfigBean
-
vcsViewerUIConfigBean
-
-
Constructor Details
-
ImportMavenPlanAction
public ImportMavenPlanAction()
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceorg.apache.struts2.Preparable- Throws:
Exception
-
initVcsTypeSelectors
-
validate
public void validate()- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classorg.apache.struts2.ActionSupport
-
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
-
getImmutablePlan
- Specified by:
getImmutablePlanin interfacePlanAware
-
getPlan
Deprecated.since 4.4 -
getMutablePlan
- Specified by:
getMutablePlanin interfacePlanAware
-
setPlan
-
getBuildConfiguration
- Specified by:
getBuildConfigurationin interfaceBareBuildConfigurationAware
-
setBuildConfiguration
- Specified by:
setBuildConfigurationin interfaceBareBuildConfigurationAware
-
getVcsTypeSelectors
-
getAvailableMavenBuilders
Return available Maven 2/3 builders- Returns:
- map of capability -> capability type
-
getSelectedRepositoryKey
-
getBuildKey
-
getBuildName
-
getExistingProjectKey
-
setExistingProjectKey
-
getProjectKey
-
setProjectKey
-
getProjectName
-
setProjectName
-
getProjectDescription
-
setProjectDescription
-
getUiConfigBean
-
getVcsUIConfigBean
-