Class GithubTriggerConfigurator
java.lang.Object
com.atlassian.bamboo.plugins.github.trigger.GithubTriggerConfigurator
- All Implemented Interfaces:
TriggerConfigurator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateTriggerConfigMap
(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition) ReturnTriggerConfigurator.RepositorySelectionMode
that is correct for the trigger.static boolean
isActiveGithubTrigger
(@NotNull TriggerDefinition triggerDefinition) static boolean
isGithubRepositoryUsingWebhooks
(@NotNull VcsRepositoryData vcsRepositoryData, @NotNull VcsLocationConfigurator vcsLocationConfigurator) 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)
-
Field Details
-
PLUGIN_KEY
- See Also:
-
-
Constructor Details
-
GithubTriggerConfigurator
public GithubTriggerConfigurator()
-
-
Method Details
-
isActiveGithubTrigger
-
populateContextForCreate
- Specified by:
populateContextForCreate
in interfaceTriggerConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition) - Specified by:
populateContextForEdit
in interfaceTriggerConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition) - Specified by:
populateContextForView
in interfaceTriggerConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection) - Specified by:
validate
in interfaceTriggerConfigurator
-
generateTriggerConfigMap
@NotNull public @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition) - Specified by:
generateTriggerConfigMap
in interfaceTriggerConfigurator
-
getRepositorySelectionMode
Description copied from interface:TriggerConfigurator
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()
- Specified by:
getRepositorySelectionMode
in interfaceTriggerConfigurator
- Returns:
-
isRepositorySelectable
public boolean isRepositorySelectable(@NotNull @NotNull PlanRepositoryDefinition planRepositoryDefinition) Description copied from interface:TriggerConfigurator
Allows to filter repositories allowed to be selected by trigger from the list of repositories available for plan.- Specified by:
isRepositorySelectable
in interfaceTriggerConfigurator
-
isGithubRepositoryUsingWebhooks
public static boolean isGithubRepositoryUsingWebhooks(@NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull VcsLocationConfigurator vcsLocationConfigurator)
-