public interface TriggerConfigurator
Modifier and Type | Interface and Description |
---|---|
static class |
TriggerConfigurator.RepositorySelectionMode
How trigger relates to repositories.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
generateTriggerConfigMap(ActionParametersMap actionParametersMap,
TriggerDefinition previousTriggerDefinition) |
TriggerConfigurator.RepositorySelectionMode |
getRepositorySelectionMode()
Return
TriggerConfigurator.RepositorySelectionMode that is correct for the trigger. |
default boolean |
isRepositorySelectable(PlanRepositoryDefinition planRepositoryDefinition)
Allows to filter repositories allowed to be selected by trigger from the list of repositories available for plan.
|
void |
populateContextForCreate(Map<String,Object> context) |
void |
populateContextForEdit(Map<String,Object> context,
TriggerDefinition triggerDefinition) |
void |
populateContextForView(Map<String,Object> context,
TriggerDefinition triggerDefinition) |
void |
validate(ActionParametersMap actionParametersMap,
ErrorCollection errorCollection) |
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)
@NotNull Map<String,String> generateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition)
@NotNull TriggerConfigurator.RepositorySelectionMode getRepositorySelectionMode()
TriggerConfigurator.RepositorySelectionMode
that is correct for the trigger. Depending on result, proper UI will be rendered and
appropriate data will be available when calling to TriggerDefinition.getTriggeringRepositories()
default boolean isRepositorySelectable(@NotNull PlanRepositoryDefinition planRepositoryDefinition)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.