Class DefaultTriggerDefinitionExporter
java.lang.Object
com.atlassian.bamboo.trigger.export.DefaultTriggerDefinitionExporter
- All Implemented Interfaces:
TriggerDefinitionExporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.bamboo.specs.api.builders.trigger.TriggertoSpecsEntity(@NotNull TriggerDefinition triggerDefinition) Create Bamboo Specs object representing this trigger.toTriggerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull Triggerable triggerable) Converts properties to Bamboo trigger configuration.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.trigger.export.TriggerDefinitionExporter
fromYaml, toSpecsEntity, toYaml
-
Constructor Details
-
DefaultTriggerDefinitionExporter
public DefaultTriggerDefinitionExporter()
-
-
Method Details
-
toTriggerConfiguration
@NotNull public @NotNull Map<String,String> toTriggerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull @NotNull Triggerable triggerable) Description copied from interface:TriggerDefinitionExporterConverts properties to Bamboo trigger configuration. Can use all Bamboo server side services and can access DB if necessary. Should throw a runtime exception if conversion fails.- Specified by:
toTriggerConfigurationin interfaceTriggerDefinitionExporter- Returns:
- trigger configuration
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@NotNull @NotNull TriggerDefinition triggerDefinition) Description copied from interface:TriggerDefinitionExporterCreate Bamboo Specs object representing this trigger. Implementors don't need to handle common task properties like e.g. enabled/disabled, but must trigger specific configuration.- Specified by:
toSpecsEntityin interfaceTriggerDefinitionExporter
-
validate
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) Description copied from interface:TriggerDefinitionExporterValidates trigger properties in context of enclosing plan or deployment properties. Should check for any inconsistencies between trigger definition and the rest of plan or deployment content, as it is provided in the validation context. Returns list of validation errors or empty if everything is ok.Should check RSS permissions if necessary.
- Specified by:
validatein interfaceTriggerDefinitionExporter
-