public class StashTriggerConfigurator extends Object implements TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<TriggerDefinition> |
IS_ACTIVE_STASH_TRIGGER
Deprecated.
since 5.10 use method reference to
isActiveStashTrigger(TriggerDefinition) |
static String |
PLUGIN_KEY |
Constructor and Description |
---|
StashTriggerConfigurator() |
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. |
static boolean |
isActiveStashTrigger(TriggerDefinition triggerDefinition) |
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) |
public static final String PLUGIN_KEY
@Deprecated public static final com.google.common.base.Predicate<TriggerDefinition> IS_ACTIVE_STASH_TRIGGER
isActiveStashTrigger(TriggerDefinition)
public static final boolean isActiveStashTrigger(@NotNull TriggerDefinition triggerDefinition)
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
@NotNull public TriggerConfigurator.RepositorySelectionMode getRepositorySelectionMode()
TriggerConfigurator
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()
getRepositorySelectionMode
in interface TriggerConfigurator
public boolean isRepositorySelectable(@NotNull PlanRepositoryDefinition planRepositoryDefinition)
TriggerConfigurator
isRepositorySelectable
in interface TriggerConfigurator
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.