public class CronTriggerConfigurator extends AbstractEnvironmentTriggerConfigurator implements PlanAwareEnvironmentTriggerConfigurator
TriggerConfigurator.RepositorySelectionModecachedPlanManager, 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, setUiConfigSupportclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRepositorySelectionMode, isRepositorySelectablepublic void populateContextForCreate(@NotNull
@NotNull Map<String,Object> context)
populateContextForCreate in interface TriggerConfiguratorpublic void populateContextForEdit(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
populateContextForEdit in interface TriggerConfiguratorpublic void populateContextForView(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
populateContextForView in interface TriggerConfiguratorpublic 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 TriggerConfiguratorpublic void validateDeploymentProjectPlanUpdate(@Nullable
@Nullable ImmutableChain oldPlan,
@NotNull
@NotNull ImmutableChain newPlan,
@NotNull
@NotNull Environment environment,
@NotNull
@NotNull List<EnvironmentTriggerValidationError> triggerValidationErrors,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfiguratorvalidateDeploymentProjectPlanUpdate in interface PlanAwareEnvironmentTriggerConfiguratorpublic void onDeploymentProjectPlanUpdate(@Nullable
@Nullable ImmutableChain oldPlan,
@NotNull
@NotNull ImmutableChain newPlan,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfiguratoronDeploymentProjectPlanUpdate in interface PlanAwareEnvironmentTriggerConfiguratorpublic boolean updatePlanKey(@NotNull
@NotNull PlanKey originalPlanKey,
@NotNull
@NotNull PlanKey newPlanKey,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfiguratorupdatePlanKey in interface PlanAwareEnvironmentTriggerConfiguratororiginalPlanKey - original value of plan keynewPlanKey - new value of plan keypublic boolean isAffectedByPlanDeletion(@NotNull
@NotNull PlanKey deletedPlanKey,
@NotNull
@NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfiguratorisAffectedByPlanDeletion in interface PlanAwareEnvironmentTriggerConfiguratordeletedPlanKey - 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 © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.