public class PlanConfigImportServiceImpl extends Object implements PlanConfigImportService
| Constructor and Description |
|---|
PlanConfigImportServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
TopLevelPlanProperties |
convertYamlToPlan(String yaml)
Converts data from a YAML document to top level plan properties.
|
TopLevelPlan |
importPlan(TopLevelPlanProperties planProperties,
com.atlassian.user.User user)
Validates exported top level plan properties within Bamboo context (e.g.
|
@NotNull public TopLevelPlanProperties convertYamlToPlan(@NotNull String yaml) throws PropertiesValidationException, YamlValidationException
PlanConfigImportServiceconvertYamlToPlan in interface PlanConfigImportServiceyaml - YAML String containing definition of top level planPropertiesValidationException - if the imported properties were not validYamlValidationException - if the format of the YAML file is invalid@NotNull public TopLevelPlan importPlan(@NotNull TopLevelPlanProperties planProperties, @NotNull com.atlassian.user.User user) throws PropertiesValidationException
PlanConfigImportServiceimportPlan in interface PlanConfigImportServiceplanProperties - top level plan properties to importuser - invoking the importPropertiesValidationException - if data validation failsCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.