public class CronTriggerConfigurator extends AbstractEnvironmentTriggerConfigurator implements PlanAwareEnvironmentTriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
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 |
---|
CronTriggerConfigurator() |
Modifier and Type | Method and Description |
---|---|
@NotNull Map<String,String> |
generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap,
@Nullable TriggerDefinition previousTriggerDefinition) |
static DeploymentTriggerBranchSelectionMode |
getDeploymentTriggerBranchSelectionMode(Map<String,String> config) |
boolean |
isAffectedByPlanDeletion(@NotNull PlanKey deletedPlanKey,
@NotNull TriggerDefinition triggerDefinition)
Check if trigger will be affected when Plan is deleted.
|
void |
onDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan,
@NotNull ImmutableChain newPlan,
@NotNull TriggerDefinition triggerDefinition)
Update trigger definition when plan related to deployment is changed.
|
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 |
setSalUserManager(com.atlassian.sal.api.user.UserManager salUserManager)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
boolean |
updatePlanKey(@NotNull PlanKey originalPlanKey,
@NotNull PlanKey newPlanKey,
@NotNull TriggerDefinition triggerDefinition)
Change plan key referenced by a trigger.
|
void |
validate(@NotNull ActionParametersMap actionParametersMap,
@NotNull ErrorCollection errorCollection) |
void |
validateDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan,
@NotNull ImmutableChain newPlan,
@NotNull Environment environment,
@NotNull List<EnvironmentTriggerValidationError> triggerValidationErrors,
@NotNull TriggerDefinition triggerDefinition)
Validate change of plan deployment is related to.
|
getBranchName, getRepositorySelectionMode, hasDeploymentProjectPlanMultipleBranches, hasTheSameMasterPlanAsDeploymentProject, populateContextWithBranchControlVariablesForDeployments, setCachedPlanManager, setCustomVariableContext, setI18nResolver, setUiConfigSupport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRepositorySelectionMode, isRepositorySelectable
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 void validateDeploymentProjectPlanUpdate(@Nullable @Nullable ImmutableChain oldPlan, @NotNull @NotNull ImmutableChain newPlan, @NotNull @NotNull Environment environment, @NotNull @NotNull List<EnvironmentTriggerValidationError> triggerValidationErrors, @NotNull @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
validateDeploymentProjectPlanUpdate
in interface PlanAwareEnvironmentTriggerConfigurator
public void onDeploymentProjectPlanUpdate(@Nullable @Nullable ImmutableChain oldPlan, @NotNull @NotNull ImmutableChain newPlan, @NotNull @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
onDeploymentProjectPlanUpdate
in interface PlanAwareEnvironmentTriggerConfigurator
public boolean updatePlanKey(@NotNull @NotNull PlanKey originalPlanKey, @NotNull @NotNull PlanKey newPlanKey, @NotNull @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
updatePlanKey
in interface PlanAwareEnvironmentTriggerConfigurator
originalPlanKey
- original value of plan keynewPlanKey
- new value of plan keypublic boolean isAffectedByPlanDeletion(@NotNull @NotNull PlanKey deletedPlanKey, @NotNull @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
isAffectedByPlanDeletion
in interface PlanAwareEnvironmentTriggerConfigurator
deletedPlanKey
- key of Plan that was deletedpublic static DeploymentTriggerBranchSelectionMode getDeploymentTriggerBranchSelectionMode(Map<String,String> config)
@Deprecated public void setSalUserManager(com.atlassian.sal.api.user.UserManager salUserManager)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.