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 |
---|---|
Map<String,String> |
generateTriggerConfigMap(ActionParametersMap actionParametersMap,
TriggerDefinition previousTriggerDefinition) |
static DeploymentTriggerBranchSelectionMode |
getDeploymentTriggerBranchSelectionMode(Map<String,String> config) |
boolean |
isAffectedByPlanDeletion(PlanKey deletedPlanKey,
TriggerDefinition triggerDefinition)
Check if trigger will be affected when Plan is deleted.
|
void |
onDeploymentProjectPlanUpdate(ImmutableChain oldPlan,
ImmutableChain newPlan,
TriggerDefinition triggerDefinition)
Update trigger definition when plan related to deployment is changed.
|
void |
populateContextForCreate(Map<String,Object> context) |
void |
populateContextForEdit(Map<String,Object> context,
TriggerDefinition triggerDefinition) |
void |
populateContextForView(Map<String,Object> context,
TriggerDefinition triggerDefinition) |
void |
setSalUserManager(com.atlassian.sal.api.user.UserManager salUserManager) |
boolean |
updatePlanKey(PlanKey originalPlanKey,
PlanKey newPlanKey,
TriggerDefinition triggerDefinition)
Change plan key referenced by a trigger.
|
void |
validate(ActionParametersMap actionParametersMap,
ErrorCollection errorCollection) |
void |
validateDeploymentProjectPlanUpdate(ImmutableChain oldPlan,
ImmutableChain newPlan,
Environment environment,
List<EnvironmentTriggerValidationError> triggerValidationErrors,
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 Map<String,Object> context)
populateContextForCreate
in interface TriggerConfigurator
public void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)
populateContextForEdit
in interface TriggerConfigurator
public void populateContextForView(@NotNull Map<String,Object> context, @NotNull TriggerDefinition triggerDefinition)
populateContextForView
in interface TriggerConfigurator
public void validate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)
validate
in interface TriggerConfigurator
@NotNull public Map<String,String> generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition)
generateTriggerConfigMap
in interface TriggerConfigurator
public void validateDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan, @NotNull ImmutableChain newPlan, @NotNull Environment environment, @NotNull List<EnvironmentTriggerValidationError> triggerValidationErrors, @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
validateDeploymentProjectPlanUpdate
in interface PlanAwareEnvironmentTriggerConfigurator
public void onDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan, @NotNull ImmutableChain newPlan, @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
onDeploymentProjectPlanUpdate
in interface PlanAwareEnvironmentTriggerConfigurator
public boolean updatePlanKey(@NotNull PlanKey originalPlanKey, @NotNull PlanKey newPlanKey, @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
updatePlanKey
in interface PlanAwareEnvironmentTriggerConfigurator
originalPlanKey
- original value of plan keynewPlanKey
- new value of plan keypublic boolean isAffectedByPlanDeletion(@NotNull PlanKey deletedPlanKey, @NotNull TriggerDefinition triggerDefinition)
PlanAwareEnvironmentTriggerConfigurator
isAffectedByPlanDeletion
in interface PlanAwareEnvironmentTriggerConfigurator
deletedPlanKey
- key of Plan that was deletedpublic static DeploymentTriggerBranchSelectionMode getDeploymentTriggerBranchSelectionMode(Map<String,String> config)
public void setSalUserManager(com.atlassian.sal.api.user.UserManager salUserManager)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.