Package com.atlassian.bamboo.vcs.export
Class DefaultVcsRepositoryViewerExporter
- java.lang.Object
-
- com.atlassian.bamboo.vcs.export.DefaultVcsRepositoryViewerExporter
-
- All Implemented Interfaces:
VcsRepositoryViewerExporter
public class DefaultVcsRepositoryViewerExporter extends Object implements VcsRepositoryViewerExporter
Default exporter for VCS repository viewers. Does not support importing or validation.
-
-
Constructor Summary
Constructors Constructor Description DefaultVcsRepositoryViewerExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewerfromYaml(@NotNull Node node)Read YAML node and returnVcsRepositoryViewerif found.@NotNull com.atlassian.bamboo.specs.api.builders.repository.viewer.AnyVcsRepositoryViewertoSpecsEntity(@NotNull VcsRepositoryViewerDefinition viewerDefinition)Converts the supplied viewer data and additional configuration to a viewer type-specific properties.@NotNull Map<String,String>toViewerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties)Converts data from importer to Bamboo repository viewer configuration.@NotNull NodetoYaml(com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties)Produce YAML node and returnVcsRepositoryViewerPropertiesconfiguration.
-
-
-
Method Detail
-
toViewerConfiguration
@NotNull public @NotNull Map<String,String> toViewerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties)
Description copied from interface:VcsRepositoryViewerExporterConverts data from importer to Bamboo repository viewer configuration.- Specified by:
toViewerConfigurationin interfaceVcsRepositoryViewerExporter
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.viewer.AnyVcsRepositoryViewer toSpecsEntity(@NotNull @NotNull VcsRepositoryViewerDefinition viewerDefinition)Description copied from interface:VcsRepositoryViewerExporterConverts the supplied viewer data and additional configuration to a viewer type-specific properties.- Specified by:
toSpecsEntityin interfaceVcsRepositoryViewerExporter
-
toYaml
@NotNull public @NotNull Node toYaml(com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
Description copied from interface:VcsRepositoryViewerExporterProduce YAML node and returnVcsRepositoryViewerPropertiesconfiguration.- Specified by:
toYamlin interfaceVcsRepositoryViewerExporter- Parameters:
entityProperties- settings- Returns:
- YAML
Nodewhich contain representation of Bamboo Specs entity. - Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
fromYaml
@Nullable public @Nullable com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer fromYaml(@NotNull @NotNull Node node) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationExceptionDescription copied from interface:VcsRepositoryViewerExporterRead YAML node and returnVcsRepositoryViewerif found.- Specified by:
fromYamlin interfaceVcsRepositoryViewerExporter- Parameters:
node- yaml structure with VcsRepositoryViewer settings- Returns:
- Specs recipient entity
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
-