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 String
CFG_DEPLOYMENT_ID
static String
CFG_ENVIRONMENTS
static String
CFG_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)
boolean
isAffectedByEnvironmentDeletion(@org.jetbrains.annotations.NotNull long environmentId, @NotNull TriggerDefinition triggerDefinition)
Check if trigger will be affected when Environment is deleted.void
modifyConfigurationByIdsReplacement(@NotNull TriggerDefinition triggerDefinition, @NotNull Map<String,String> oldAndClonedEnvironmentIds)
Replace environments' ids according to provided mappingvoid
populateContextForCreate(@NotNull Map<String,Object> context)
void
populateContextForEdit(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)
void
populateContextForView(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)
void
setEnvironmentService(EnvironmentService environmentService)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
validate(@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:
populateContextForCreate
in interfaceTriggerConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
- Specified by:
populateContextForEdit
in interfaceTriggerConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
- Specified by:
populateContextForView
in interfaceTriggerConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
- Specified by:
validate
in interfaceTriggerConfigurator
-
generateTriggerConfigMap
@NotNull public @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition)
- Specified by:
generateTriggerConfigMap
in interfaceTriggerConfigurator
-
isAffectedByEnvironmentDeletion
public boolean isAffectedByEnvironmentDeletion(@NotNull @org.jetbrains.annotations.NotNull long environmentId, @NotNull @NotNull TriggerDefinition triggerDefinition)
Description copied from interface:EnvironmentAwareEnvironmentTriggerConfigurator
Check if trigger will be affected when Environment is deleted.- Specified by:
isAffectedByEnvironmentDeletion
in 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:EnvironmentAwareEnvironmentTriggerConfigurator
Replace environments' ids according to provided mapping- Specified by:
modifyConfigurationByIdsReplacement
in 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
-
-