public class RemoteTriggerDefinitionExporter extends Object implements TriggerDefinitionExporter
Constructor and Description |
---|
RemoteTriggerDefinitionExporter() |
Modifier and Type | Method and Description |
---|---|
@Nullable com.atlassian.bamboo.specs.builders.trigger.RemoteTrigger |
fromYaml(@NotNull Node node,
@NotNull TaskValidationContext context)
Parse YAML node to Trigger Specs builder.
|
@NotNull com.atlassian.bamboo.specs.builders.trigger.RemoteTrigger |
toSpecsEntity(@NotNull TriggerDefinition triggerDefinition)
This method receives and
TriggerDefinition . |
@NotNull Map<String,String> |
toTriggerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties,
@NotNull Triggerable triggerable)
Returns custom trigger configuration.
|
<T extends com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties> |
toYaml(T triggerProperties)
Convert trigger definition to YAML node.
|
List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(@NotNull TriggerValidationContext triggerValidationContext,
@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
Validates trigger properties in context of enclosing plan or deployment properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toSpecsEntity
@NotNull public @NotNull Map<String,String> toTriggerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull @NotNull Triggerable triggerable)
TriggerProperties
properties and RepositoryBasedTriggerProperties
properties are handled
by "the framework".toTriggerConfiguration
in interface TriggerDefinitionExporter
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.trigger.RemoteTrigger toSpecsEntity(@NotNull @NotNull TriggerDefinition triggerDefinition)
TriggerDefinition
. All properties of should
already be copied from TriggerDefinition
. This method returns RemoteTriggerProperties
with common properties from AnyTrigger
and custom properties from TriggerDefinition
toSpecsEntity
in interface TriggerDefinitionExporter
public List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull @NotNull TriggerValidationContext triggerValidationContext, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
TriggerDefinitionExporter
Should check RSS permissions if necessary.
validate
in interface TriggerDefinitionExporter
@Nullable public <T extends com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties> @Nullable Node toYaml(@NotNull T triggerProperties)
TriggerDefinitionExporter
toYaml
in interface TriggerDefinitionExporter
@Nullable public @Nullable com.atlassian.bamboo.specs.builders.trigger.RemoteTrigger fromYaml(@NotNull @NotNull Node node, @NotNull @NotNull TaskValidationContext context) throws YamlSpecsValidationException
TriggerDefinitionExporter
fromYaml
in interface TriggerDefinitionExporter
node
- YAML node from user input. In general case it's same node generated by TriggerDefinitionExporter.toYaml(TriggerProperties)
method, but in some cases it might contain additional trigger elements, like conditions. These
elements should be ignored by method implementation and will be handled by Bamboo code. In such case
MapNode handler should be implemented even if TriggerDefinitionExporter.toYaml(TriggerProperties)
produces StringNode.context
- task validation contextYamlSpecsValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences