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
Modifier and TypeFieldDescriptionprotected CachedPlanManager
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected com.atlassian.sal.api.message.I18nResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getBranchName
(@Nullable String planKeyString) This method provides initial data for branch picker controlReturnTriggerConfigurator.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 injectionMethods 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 Details
-
DEPLOYMENT_PROJECT
- See Also:
-
ENVIRONMENT
- See Also:
-
ENVIRONMENT_ID
- See Also:
-
CFG_PLAN_HAS_MULTIPLE_BRANCHES
- See Also:
-
CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT
- See Also:
-
CFG_BRANCH_SELECTION_OPTIONS
- See Also:
-
CFG_BRANCH_NAME
- See Also:
-
CFG_TRIGGERING_PLAN
- See Also:
-
i18nResolver
@Inject protected com.atlassian.sal.api.message.I18nResolver i18nResolver -
cachedPlanManager
-
-
Constructor Details
-
AbstractEnvironmentTriggerConfigurator
public AbstractEnvironmentTriggerConfigurator()
-
-
Method Details
-
setI18nResolver
Deprecated.since 6.8 use constructor injection or annotation injection -
setCachedPlanManager
Deprecated.since 6.8 use constructor injection or annotation injection -
setUiConfigSupport
Deprecated.since 6.8 use constructor injection or annotation injection -
setCustomVariableContext
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
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
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:
-