Class BambooYamlVersion1ConverterImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.yaml.format.BambooYamlVersion1ConverterImpl
-
- All Implemented Interfaces:
BambooYamlVersion1Converter
public class BambooYamlVersion1ConverterImpl extends Object implements BambooYamlVersion1Converter
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SCRIPT_INTERPRETER
Default interpreter, if user provided none in YAML v1 document.
-
Constructor Summary
Constructors Constructor Description BambooYamlVersion1ConverterImpl(@NotNull I18nBeanFactory i18nBeanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Map<String,Object>
convertToYamlVersion2(@NotNull Map<String,Object> rawYaml1Structure)
Converts the given structure of a YAML document from version 1 to 2.
-
-
-
Field Detail
-
DEFAULT_SCRIPT_INTERPRETER
public static final String DEFAULT_SCRIPT_INTERPRETER
Default interpreter, if user provided none in YAML v1 document. Must exist on the list ofALLOWED_SCRIPT_INTERPRETERS
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BambooYamlVersion1ConverterImpl
@Inject public BambooYamlVersion1ConverterImpl(@NotNull @NotNull I18nBeanFactory i18nBeanFactory)
-
-
Method Detail
-
convertToYamlVersion2
@NotNull public @NotNull Map<String,Object> convertToYamlVersion2(@NotNull @NotNull Map<String,Object> rawYaml1Structure) throws YamlSpecsValidationException
Description copied from interface:BambooYamlVersion1Converter
Converts the given structure of a YAML document from version 1 to 2.- Specified by:
convertToYamlVersion2
in interfaceBambooYamlVersion1Converter
- Parameters:
rawYaml1Structure
- structure of a YAML document in version 1.- Returns:
- structure of a YAML document in version 2.
- Throws:
YamlSpecsValidationException
- if the given YAML structure is invalid- See Also:
BambooYamlVersion
-
-