public class RemoteTriggerDefinitionExporter extends Object implements TriggerDefinitionExporter
Constructor and Description |
---|
RemoteTriggerDefinitionExporter() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.api.builders.trigger.Trigger |
toSpecsEntity(TriggerDefinition triggerDefinition)
This method receives and
TriggerDefinition . |
Map<String,String> |
toTriggerConfiguration(com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
Returns custom trigger configuration.
|
List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(TriggerValidationContext triggerValidationContext,
com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
Validates trigger properties in context of enclosing plan or deployment properties.
|
@NotNull public Map<String,String> toTriggerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
TriggerProperties
properties and RepositoryBasedTriggerProperties
properties are handled
by "the framework".toTriggerConfiguration
in interface TriggerDefinitionExporter
@NotNull public com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@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 TriggerValidationContext triggerValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
TriggerDefinitionExporter
validate
in interface TriggerDefinitionExporter
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.