Class SpecsExporterImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.exporters.SpecsExporterImpl
- All Implemented Interfaces:
SpecsExporter
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.configuration.external.exporters.SpecsExporter
SpecsExporter.ExportFormat
-
Constructor Summary
ConstructorDescriptionSpecsExporterImpl
(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter) -
Method Summary
Modifier and TypeMethodDescriptiongetCodeFromDeploymentProject
(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) Convert a deployment plan to a Java Bamboo SpecgetCodeFromPlan
(ImmutableTopLevelPlan immutableTopLevelPlan) Delegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and classNamegetCodeFromPlan
(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) Convert a plan to a Java Bamboo Spec
-
Constructor Details
-
SpecsExporterImpl
@Autowired public SpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter)
-
-
Method Details
-
getCodeFromPlan
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporter
Delegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and className- Specified by:
getCodeFromPlan
in interfaceSpecsExporter
- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
getCodeFromPlan
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporter
Convert a plan to a Java Bamboo Spec- Specified by:
getCodeFromPlan
in interfaceSpecsExporter
- Parameters:
immutableTopLevelPlan
- The top level plan to extractformat
- specs format (Java or YAML)packageName
- The package to put the spec inclassName
- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
- if generating the file fails
-
getCodeFromDeploymentProject
public String getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporter
Convert a deployment plan to a Java Bamboo Spec- Specified by:
getCodeFromDeploymentProject
in interfaceSpecsExporter
- Parameters:
deploymentProject
- The top level plan to extractformat
- specs format (Java or YAML)packageName
- The package to put the spec inclassName
- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
- if generating the file fails
-