Package com.atlassian.bamboo.trigger
Interface TriggerConfigurator
-
- All Known Subinterfaces:
EnvironmentAwareEnvironmentTriggerConfigurator
,PlanAwareEnvironmentTriggerConfigurator
- All Known Implementing Classes:
AbstractEnvironmentTriggerConfigurator
,AfterSuccessfulDeploymentTriggerConfigurator
,AfterSuccessfulPlanTriggerConfigurator
,AfterSuccessfulStageTriggerConfigurator
,BitbucketCloudTriggerConfigurator
,CronTriggerConfigurator
,DailyTriggerConfigurator
,PollingTriggerConfigurator
,RemoteTriggerConfigurator
,StashTriggerConfigurator
,TagTriggerConfigurator
public interface TriggerConfigurator
Configurator for triggers.- Since:
- 5.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TriggerConfigurator.RepositorySelectionMode
How trigger relates to repositories.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull Map<String,String>
generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition)
@NotNull TriggerConfigurator.RepositorySelectionMode
getRepositorySelectionMode()
ReturnTriggerConfigurator.RepositorySelectionMode
that is correct for the trigger.default boolean
isRepositorySelectable(@NotNull PlanRepositoryDefinition planRepositoryDefinition)
Allows to filter repositories allowed to be selected by trigger from the list of repositories available for plan.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
validate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)
-
-
-
Method Detail
-
populateContextForCreate
void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
-
populateContextForEdit
void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
-
populateContextForView
void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition)
-
validate
void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
-
generateTriggerConfigMap
@NotNull @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition)
-
getRepositorySelectionMode
@NotNull @NotNull TriggerConfigurator.RepositorySelectionMode getRepositorySelectionMode()
ReturnTriggerConfigurator.RepositorySelectionMode
that is correct for the trigger. Depending on result, proper UI will be rendered and appropriate data will be available when calling toTriggerDefinition.getTriggeringRepositories()
- Returns:
-
isRepositorySelectable
default boolean isRepositorySelectable(@NotNull @NotNull PlanRepositoryDefinition planRepositoryDefinition)
Allows to filter repositories allowed to be selected by trigger from the list of repositories available for plan.
-
-