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