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 CachedPlanManager
cachedPlanManager
protected static String
CFG_BRANCH_NAME
protected static String
CFG_BRANCH_SELECTION_OPTIONS
protected static String
CFG_PLAN_HAS_MULTIPLE_BRANCHES
protected static String
CFG_TRIGGERING_PLAN
protected static String
CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT
protected static String
DEPLOYMENT_PROJECT
protected static String
ENVIRONMENT
protected static String
ENVIRONMENT_ID
protected com.atlassian.sal.api.message.I18nResolver
i18nResolver
-
Constructor Summary
Constructors Constructor Description AbstractEnvironmentTriggerConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
getBranchName(@Nullable String planKeyString)
This method provides initial data for branch picker control@NotNull TriggerConfigurator.RepositorySelectionMode
getRepositorySelectionMode()
ReturnTriggerConfigurator.RepositorySelectionMode
that is correct for the trigger.protected boolean
hasDeploymentProjectPlanMultipleBranches(@NotNull DeploymentProject deploymentProject)
protected boolean
hasTheSameMasterPlanAsDeploymentProject(@NotNull DeploymentProject deploymentProject, DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String planKeyString)
protected void
populateContextWithBranchControlVariablesForDeployments(@NotNull DeploymentProject deploymentProject, @NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String triggeringBranchKey, @NotNull Map<String,Object> context)
void
setCachedPlanManager(CachedPlanManager cachedPlanManager)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setUiConfigSupport(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:TriggerConfigurator
ReturnTriggerConfigurator.RepositorySelectionMode
that 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:
getRepositorySelectionMode
in interfaceTriggerConfigurator
- Returns:
-
-