public class AfterSuccessfulDeploymentTriggerConfigurator extends AbstractEnvironmentTriggerConfigurator implements EnvironmentAwareEnvironmentTriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
Modifier and Type | Field and Description |
---|---|
static String |
CFG_DEPLOYMENT_ID |
static String |
CFG_ENVIRONMENTS |
static String |
CFG_TRIGGERING_ENVIRONMENT_ID |
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 and Description |
---|
AfterSuccessfulDeploymentTriggerConfigurator() |
Modifier and Type | Method and Description |
---|---|
@NotNull Map<String,String> |
generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap,
@Nullable TriggerDefinition previousTriggerDefinition) |
boolean |
isAffectedByEnvironmentDeletion(@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 mapping
|
void |
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 injection
|
void |
validate(@NotNull ActionParametersMap actionParametersMap,
@NotNull ErrorCollection errorCollection) |
getBranchName, getRepositorySelectionMode, hasDeploymentProjectPlanMultipleBranches, hasTheSameMasterPlanAsDeploymentProject, populateContextWithBranchControlVariablesForDeployments, setCachedPlanManager, setCustomVariableContext, setI18nResolver, setUiConfigSupport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRepositorySelectionMode, isRepositorySelectable
public static final String CFG_TRIGGERING_ENVIRONMENT_ID
public static final String CFG_ENVIRONMENTS
public static final String CFG_DEPLOYMENT_ID
public AfterSuccessfulDeploymentTriggerConfigurator()
public void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
populateContextForCreate
in interface TriggerConfigurator
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
populateContextForEdit
in interface TriggerConfigurator
public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
populateContextForView
in interface TriggerConfigurator
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
validate
in interface TriggerConfigurator
@NotNull public @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition)
generateTriggerConfigMap
in interface TriggerConfigurator
public boolean isAffectedByEnvironmentDeletion(@NotNull @NotNull long environmentId, @NotNull @NotNull TriggerDefinition triggerDefinition)
EnvironmentAwareEnvironmentTriggerConfigurator
isAffectedByEnvironmentDeletion
in interface EnvironmentAwareEnvironmentTriggerConfigurator
environmentId
- id of an Environment being deletedpublic void modifyConfigurationByIdsReplacement(@NotNull @NotNull TriggerDefinition triggerDefinition, @NotNull @NotNull Map<String,String> oldAndClonedEnvironmentIds)
EnvironmentAwareEnvironmentTriggerConfigurator
modifyConfigurationByIdsReplacement
in interface EnvironmentAwareEnvironmentTriggerConfigurator
triggerDefinition
- of which configuration will be replacedoldAndClonedEnvironmentIds
- mapping between old and new ids@Deprecated public void setEnvironmentService(EnvironmentService environmentService)
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.