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
FieldsModifier and TypeFieldDescriptionprotected CachedPlanManagerprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected com.atlassian.sal.api.message.I18nResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBranchName(@Nullable String planKeyString) This method provides initial data for branch picker controlReturnTriggerConfigurator.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 injectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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:
-