Class AbstractEnvironmentTriggerConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
-
- All Implemented Interfaces:
TriggerConfigurator
- Direct Known Subclasses:
AfterSuccessfulDeploymentTriggerConfigurator,AfterSuccessfulPlanTriggerConfigurator,AfterSuccessfulStageTriggerConfigurator,CronTriggerConfigurator
public abstract class AbstractEnvironmentTriggerConfigurator extends Object implements TriggerConfigurator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedPlanManagercachedPlanManagerprotected static StringCFG_BRANCH_NAMEprotected static StringCFG_BRANCH_SELECTION_OPTIONSprotected static StringCFG_PLAN_HAS_MULTIPLE_BRANCHESprotected static StringCFG_TRIGGERING_PLANprotected static StringCFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENTprotected static StringDEPLOYMENT_PROJECTprotected static StringENVIRONMENTprotected static StringENVIRONMENT_IDprotected com.atlassian.sal.api.message.I18nResolveri18nResolver
-
Constructor Summary
Constructors Constructor Description AbstractEnvironmentTriggerConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringgetBranchName(@Nullable String planKeyString)This method provides initial data for branch picker control@NotNull TriggerConfigurator.RepositorySelectionModegetRepositorySelectionMode()ReturnTriggerConfigurator.RepositorySelectionModethat is correct for the trigger.protected booleanhasDeploymentProjectPlanMultipleBranches(@NotNull DeploymentProject deploymentProject)protected booleanhasTheSameMasterPlanAsDeploymentProject(@NotNull DeploymentProject deploymentProject, DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String planKeyString)protected voidpopulateContextWithBranchControlVariablesForDeployments(@NotNull DeploymentProject deploymentProject, @NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String triggeringBranchKey, @NotNull Map<String,Object> context)voidsetCachedPlanManager(CachedPlanManager cachedPlanManager)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetCustomVariableContext(CustomVariableContext customVariableContext)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetUiConfigSupport(UIConfigSupport uiConfigSupport)Deprecated.since 6.8 use constructor injection or annotation injection-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
generateTriggerConfigMap, isRepositorySelectable, populateContextForCreate, populateContextForEdit, populateContextForView, validate
-
-
-
-
Field Detail
-
DEPLOYMENT_PROJECT
protected static final String DEPLOYMENT_PROJECT
- See Also:
- Constant Field Values
-
ENVIRONMENT
protected static final String ENVIRONMENT
- See Also:
- Constant Field Values
-
ENVIRONMENT_ID
protected static final String ENVIRONMENT_ID
- See Also:
- Constant Field Values
-
CFG_PLAN_HAS_MULTIPLE_BRANCHES
protected static final String CFG_PLAN_HAS_MULTIPLE_BRANCHES
- See Also:
- Constant Field Values
-
CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT
protected static final String CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT
- See Also:
- Constant Field Values
-
CFG_BRANCH_SELECTION_OPTIONS
protected static final String CFG_BRANCH_SELECTION_OPTIONS
- See Also:
- Constant Field Values
-
CFG_BRANCH_NAME
protected static final String CFG_BRANCH_NAME
- See Also:
- Constant Field Values
-
CFG_TRIGGERING_PLAN
protected static final String CFG_TRIGGERING_PLAN
- See Also:
- Constant Field Values
-
i18nResolver
@Inject protected com.atlassian.sal.api.message.I18nResolver i18nResolver
-
cachedPlanManager
@Inject protected CachedPlanManager cachedPlanManager
-
-
Method Detail
-
setI18nResolver
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setCachedPlanManager
@Deprecated public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setUiConfigSupport
@Deprecated public void setUiConfigSupport(UIConfigSupport uiConfigSupport)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setCustomVariableContext
@Deprecated public void setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.since 6.8 use constructor injection or annotation injection
-
hasTheSameMasterPlanAsDeploymentProject
protected boolean hasTheSameMasterPlanAsDeploymentProject(@NotNull @NotNull DeploymentProject deploymentProject, DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull @NotNull String planKeyString)
-
hasDeploymentProjectPlanMultipleBranches
protected boolean hasDeploymentProjectPlanMultipleBranches(@NotNull @NotNull DeploymentProject deploymentProject)
-
getBranchName
protected String getBranchName(@Nullable @Nullable String planKeyString)
This method provides initial data for branch picker control- Parameters:
planKeyString- identifies plan- Returns:
- displayable branch name of a plan
-
populateContextWithBranchControlVariablesForDeployments
protected void populateContextWithBranchControlVariablesForDeployments(@NotNull @NotNull DeploymentProject deploymentProject, @NotNull @NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull @NotNull String triggeringBranchKey, @NotNull @NotNull Map<String,Object> context)
-
getRepositorySelectionMode
@NotNull public @NotNull TriggerConfigurator.RepositorySelectionMode getRepositorySelectionMode()
Description copied from interface:TriggerConfiguratorReturnTriggerConfigurator.RepositorySelectionModethat is correct for the trigger. Depending on result, proper UI will be rendered and appropriate data will be available when calling toTriggerDefinition.getTriggeringRepositories()- Specified by:
getRepositorySelectionModein interfaceTriggerConfigurator- Returns:
-
-