public class RemoteTriggerConfigurator extends Object implements TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_KEY |
static String |
TRIGGER_IP_ADDRESS |
Constructor and Description |
---|
RemoteTriggerConfigurator() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
generateTriggerConfigMap(ActionParametersMap actionParametersMap,
TriggerDefinition previousTriggerDefinition) |
static Set<String> |
getAllowedIpAddressFromConfiguration(TriggerDefinition triggerDefinition) |
TriggerConfigurator.RepositorySelectionMode |
getRepositorySelectionMode()
Return
TriggerConfigurator.RepositorySelectionMode that is correct for the trigger. |
static boolean |
isActiveRemoteTrigger(TriggerDefinition triggerDefinition) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRepositorySelectable
public static final String PLUGIN_KEY
public static final String TRIGGER_IP_ADDRESS
public static boolean isActiveRemoteTrigger(@NotNull TriggerDefinition triggerDefinition)
public static Set<String> getAllowedIpAddressFromConfiguration(@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
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.