public class BambooYamlParserImpl extends Object implements BambooYamlParser
Modifier and Type | Field and Description |
---|---|
static Predicate<com.atlassian.plugin.ModuleDescriptor<ImportExportAwarePlugin>> |
IMPORT_EXPORT_AWARE_MODULE_DESCRIPTORS_PREDICATE |
static Predicate<com.atlassian.plugin.ModuleDescriptor<TaskCondition>> |
TASK_CONDITION_MODULE_DESCRIPTORS_PREDICATE |
static Predicate<com.atlassian.plugin.ModuleDescriptor<BuildTriggerCondition>> |
TRIGGER_CONDITION_MODULE_DESCRIPTOR_PREDICATE |
static Predicate<com.atlassian.plugin.ModuleDescriptor<TriggerActivator>> |
TRIGGER_MODULE_DESCRIPTORS_PREDICATE |
Constructor and Description |
---|
BambooYamlParserImpl(BambooYamlVersion1Converter bambooYamlVersion1Converter,
BambooYamlOverrider bambooYamlOverrider,
I18nBeanFactory i18nBeanFactory,
com.atlassian.plugin.PluginAccessor pluginAccessor,
TaskManager taskManager,
VcsRepositoryManager repositoryManager,
CustomEnvironmentPluginExportHelper customEnvironmentPluginExportHelper) |
Modifier and Type | Method and Description |
---|---|
static @NotNull BranchManagementConfiguration |
getDefaultBranchManagementSettings()
Values should be synchronized with
com.atlassian.bamboo.configuration.external.yaml.YamlV1ToSpecs#getDefaultPlanBranchManagement() . |
@NotNull BambooYamlDeploymentDefinition |
parseDeployment(@NotNull Map<String,Object> structure,
@NotNull BambooYamlVersion yamlVersion,
@NotNull VcsRepositoryData repository)
Constructs an instance of
BambooYamlDeploymentDefinition based on the given YAML structure. |
@NotNull BambooYamlDeploymentPermissionsDefinition |
parseDeploymentPermissions(Map<String,Object> structure,
BambooYamlVersion yamlVersion)
Constructs an instance of
BambooYamlDeploymentPermissionsDefinition based on the given YAML structure. |
@NotNull BambooYamlPlanDefinition |
parsePlan(@NotNull Map<String,Object> rawYamlStructure,
@NotNull BambooYamlVersion yamlVersion,
@NotNull VcsRepositoryData repository,
@NotNull RssExecutionOutputHandler stdout)
Constructs an instance of
BambooYamlPlanDefinition based on the given YAML structure. |
@NotNull BambooYamlPlanPermissionsDefinition |
parsePlanPermissions(Map<String,Object> structure,
BambooYamlVersion yamlVersion)
Constructs an instance of
BambooYamlPlanPermissionsDefinition based on the given YAML structure. |
public static final Predicate<com.atlassian.plugin.ModuleDescriptor<TriggerActivator>> TRIGGER_MODULE_DESCRIPTORS_PREDICATE
public static final Predicate<com.atlassian.plugin.ModuleDescriptor<ImportExportAwarePlugin>> IMPORT_EXPORT_AWARE_MODULE_DESCRIPTORS_PREDICATE
public static final Predicate<com.atlassian.plugin.ModuleDescriptor<BuildTriggerCondition>> TRIGGER_CONDITION_MODULE_DESCRIPTOR_PREDICATE
public static final Predicate<com.atlassian.plugin.ModuleDescriptor<TaskCondition>> TASK_CONDITION_MODULE_DESCRIPTORS_PREDICATE
@Inject public BambooYamlParserImpl(BambooYamlVersion1Converter bambooYamlVersion1Converter, BambooYamlOverrider bambooYamlOverrider, I18nBeanFactory i18nBeanFactory, com.atlassian.plugin.PluginAccessor pluginAccessor, TaskManager taskManager, VcsRepositoryManager repositoryManager, CustomEnvironmentPluginExportHelper customEnvironmentPluginExportHelper)
@NotNull public @NotNull BambooYamlPlanDefinition parsePlan(@NotNull @NotNull Map<String,Object> rawYamlStructure, @NotNull @NotNull BambooYamlVersion yamlVersion, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull RssExecutionOutputHandler stdout)
BambooYamlParser
BambooYamlPlanDefinition
based on the given YAML structure. This method will
run basic validation, e.g. that types in the YAML document match.parsePlan
in interface BambooYamlParser
rawYamlStructure
- a single YAML document converted into a Map
yamlVersion
- YAML format versionrepository
- the VCS where the YAML is fromstdout
- output handler for logging execution information@NotNull public static @NotNull BranchManagementConfiguration getDefaultBranchManagementSettings()
com.atlassian.bamboo.configuration.external.yaml.YamlV1ToSpecs#getDefaultPlanBranchManagement()
.@NotNull public @NotNull BambooYamlDeploymentDefinition parseDeployment(@NotNull @NotNull Map<String,Object> structure, @NotNull @NotNull BambooYamlVersion yamlVersion, @NotNull @NotNull VcsRepositoryData repository)
BambooYamlParser
BambooYamlDeploymentDefinition
based on the given YAML structure. This method will
run basic validation, e.g. that types in the YAML document match.parseDeployment
in interface BambooYamlParser
structure
- a single YAML document converted into a Map
yamlVersion
- YAML format version@NotNull public @NotNull BambooYamlDeploymentPermissionsDefinition parseDeploymentPermissions(Map<String,Object> structure, BambooYamlVersion yamlVersion)
BambooYamlParser
BambooYamlDeploymentPermissionsDefinition
based on the given YAML structure. This method will
run basic validation, e.g. that types in the YAML document match.parseDeploymentPermissions
in interface BambooYamlParser
structure
- a single YAML document converted into a Map
yamlVersion
- YAML format version@NotNull public @NotNull BambooYamlPlanPermissionsDefinition parsePlanPermissions(Map<String,Object> structure, BambooYamlVersion yamlVersion) throws YamlSpecsValidationException
BambooYamlParser
BambooYamlPlanPermissionsDefinition
based on the given YAML structure. This method will
run basic validation, e.g. that types in the YAML document match.parsePlanPermissions
in interface BambooYamlParser
structure
- a single YAML document converted into a Map
yamlVersion
- YAML format versionYamlSpecsValidationException
- if the passed YAML document is not a valid plan permissions definitionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences