Package com.atlassian.bamboo.trigger
Interface TriggerConfigurator
- All Known Subinterfaces:
EnvironmentAwareEnvironmentTriggerConfigurator
,PlanAwareEnvironmentTriggerConfigurator
- All Known Implementing Classes:
AbstractEnvironmentTriggerConfigurator
,AfterSuccessfulDeploymentTriggerConfigurator
,AfterSuccessfulPlanTriggerConfigurator
,AfterSuccessfulStageTriggerConfigurator
,BitbucketCloudTriggerConfigurator
,CronTriggerConfigurator
,DailyTriggerConfigurator
,GithubTriggerConfigurator
,PollingTriggerConfigurator
,RemoteTriggerConfigurator
,StashTriggerConfigurator
,TagTriggerConfigurator
public interface TriggerConfigurator
Configurator for triggers.
- Since:
- 5.8
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
How trigger relates to repositories. -
Method Summary
Modifier and TypeMethodDescriptiongenerateTriggerConfigMap
(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition) 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 Details
-
populateContextForCreate
-
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
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.
-