Class AfterSuccessfulDeploymentTriggerConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
-
- com.atlassian.bamboo.trigger.dependency.AfterSuccessfulDeploymentTriggerConfigurator
-
- All Implemented Interfaces:
EnvironmentAwareEnvironmentTriggerConfigurator,TriggerConfigurator
public class AfterSuccessfulDeploymentTriggerConfigurator extends AbstractEnvironmentTriggerConfigurator implements EnvironmentAwareEnvironmentTriggerConfigurator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
-
-
Field Summary
Fields Modifier and Type Field Description static StringCFG_DEPLOYMENT_IDstatic StringCFG_ENVIRONMENTSstatic StringCFG_TRIGGERING_ENVIRONMENT_ID-
Fields inherited from class com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
cachedPlanManager, CFG_BRANCH_NAME, CFG_BRANCH_SELECTION_OPTIONS, CFG_PLAN_HAS_MULTIPLE_BRANCHES, CFG_TRIGGERING_PLAN, CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT, DEPLOYMENT_PROJECT, ENVIRONMENT, ENVIRONMENT_ID, i18nResolver
-
-
Constructor Summary
Constructors Constructor Description AfterSuccessfulDeploymentTriggerConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull Map<String,String>generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition)booleanisAffectedByEnvironmentDeletion(@org.jetbrains.annotations.NotNull long environmentId, @NotNull TriggerDefinition triggerDefinition)Check if trigger will be affected when Environment is deleted.voidmodifyConfigurationByIdsReplacement(@NotNull TriggerDefinition triggerDefinition, @NotNull Map<String,String> oldAndClonedEnvironmentIds)Replace environments' ids according to provided mappingvoidpopulateContextForCreate(@NotNull Map<String,Object> context)voidpopulateContextForEdit(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)voidpopulateContextForView(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)voidsetEnvironmentService(EnvironmentService environmentService)Deprecated.since 6.8 use constructor injection or annotation injectionvoidvalidate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)-
Methods inherited from class com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
getBranchName, getRepositorySelectionMode, hasDeploymentProjectPlanMultipleBranches, hasTheSameMasterPlanAsDeploymentProject, populateContextWithBranchControlVariablesForDeployments, setCachedPlanManager, setCustomVariableContext, setI18nResolver, setUiConfigSupport
-
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
getRepositorySelectionMode, isRepositorySelectable
-
-
-
-
Field Detail
-
CFG_TRIGGERING_ENVIRONMENT_ID
public static final String CFG_TRIGGERING_ENVIRONMENT_ID
- See Also:
- Constant Field Values
-
CFG_ENVIRONMENTS
public static final String CFG_ENVIRONMENTS
- See Also:
- Constant Field Values
-
CFG_DEPLOYMENT_ID
public static final String CFG_DEPLOYMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
populateContextForCreate
public void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)- Specified by:
populateContextForCreatein interfaceTriggerConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)- Specified by:
populateContextForEditin interfaceTriggerConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)- Specified by:
populateContextForViewin interfaceTriggerConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)- Specified by:
validatein interfaceTriggerConfigurator
-
generateTriggerConfigMap
@NotNull public @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition)
- Specified by:
generateTriggerConfigMapin interfaceTriggerConfigurator
-
isAffectedByEnvironmentDeletion
public boolean isAffectedByEnvironmentDeletion(@NotNull @org.jetbrains.annotations.NotNull long environmentId, @NotNull @NotNull TriggerDefinition triggerDefinition)Description copied from interface:EnvironmentAwareEnvironmentTriggerConfiguratorCheck if trigger will be affected when Environment is deleted.- Specified by:
isAffectedByEnvironmentDeletionin interfaceEnvironmentAwareEnvironmentTriggerConfigurator- Parameters:
environmentId- id of an Environment being deleted- Returns:
- true if action needs to be taken when Environment is deleted
-
modifyConfigurationByIdsReplacement
public void modifyConfigurationByIdsReplacement(@NotNull @NotNull TriggerDefinition triggerDefinition, @NotNull @NotNull Map<String,String> oldAndClonedEnvironmentIds)Description copied from interface:EnvironmentAwareEnvironmentTriggerConfiguratorReplace environments' ids according to provided mapping- Specified by:
modifyConfigurationByIdsReplacementin interfaceEnvironmentAwareEnvironmentTriggerConfigurator- Parameters:
triggerDefinition- of which configuration will be replacedoldAndClonedEnvironmentIds- mapping between old and new ids
-
setEnvironmentService
@Deprecated public void setEnvironmentService(EnvironmentService environmentService)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-