Package com.atlassian.bamboo.vcs.export
Class NoConfigVcsRepositoryViewerExporter
java.lang.Object
com.atlassian.bamboo.vcs.export.NoConfigVcsRepositoryViewerExporter
- All Implemented Interfaces:
VcsRepositoryViewerExporter
public class NoConfigVcsRepositoryViewerExporter
extends Object
implements VcsRepositoryViewerExporter
Exporter for VCS repository viewers which do not have any additional configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer
Read YAML node and returnVcsRepositoryViewer
if found.@NotNull com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer
toSpecsEntity
(@NotNull VcsRepositoryViewerDefinition viewerDefinition) Converts the supplied viewer data and additional configuration to a viewer type-specific properties.toViewerConfiguration
(@NotNull com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) Converts data from importer to Bamboo repository viewer configuration.@Nullable Node
toYaml
(com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) Produce YAML node and returnVcsRepositoryViewerProperties
configuration.
-
Constructor Details
-
NoConfigVcsRepositoryViewerExporter
public NoConfigVcsRepositoryViewerExporter()
-
-
Method Details
-
toViewerConfiguration
@NotNull public @NotNull Map<String,String> toViewerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) Description copied from interface:VcsRepositoryViewerExporter
Converts data from importer to Bamboo repository viewer configuration.- Specified by:
toViewerConfiguration
in interfaceVcsRepositoryViewerExporter
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer toSpecsEntity(@NotNull @NotNull VcsRepositoryViewerDefinition viewerDefinition) Description copied from interface:VcsRepositoryViewerExporter
Converts the supplied viewer data and additional configuration to a viewer type-specific properties.- Specified by:
toSpecsEntity
in interfaceVcsRepositoryViewerExporter
-
toYaml
@Nullable public @Nullable Node toYaml(com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException Description copied from interface:VcsRepositoryViewerExporter
Produce YAML node and returnVcsRepositoryViewerProperties
configuration.- Specified by:
toYaml
in interfaceVcsRepositoryViewerExporter
- Parameters:
entityProperties
- settings- Returns:
- YAML
Node
which 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.PropertiesValidationException Description copied from interface:VcsRepositoryViewerExporter
Read YAML node and returnVcsRepositoryViewer
if found.- Specified by:
fromYaml
in interfaceVcsRepositoryViewerExporter
- Parameters:
node
- yaml structure with VcsRepositoryViewer settings- Returns:
- Specs recipient entity
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-