Class FishEyeRepositoryViewerExporter

java.lang.Object
com.atlassian.bamboo.vcs.viewer.fisheye.FishEyeRepositoryViewerExporter
All Implemented Interfaces:
VcsRepositoryViewerExporter

public class FishEyeRepositoryViewerExporter extends Object implements VcsRepositoryViewerExporter
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer
    fromYaml(@NotNull Node node)
    Read YAML node and return VcsRepositoryViewer 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.
    @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.
    @Nullable Node
    toYaml(com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties)
    Produce YAML node and return VcsRepositoryViewerProperties configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FishEyeRepositoryViewerExporter

      @Inject public FishEyeRepositoryViewerExporter(CustomVariableContext customVariableContext)
  • Method Details

    • toViewerConfiguration

      @NotNull public @NotNull Map<String,String> toViewerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.viewer.VcsRepositoryViewerProperties entityProperties) throws YamlValidationException
      Description copied from interface: VcsRepositoryViewerExporter
      Converts data from importer to Bamboo repository viewer configuration.
      Specified by:
      toViewerConfiguration in interface VcsRepositoryViewerExporter
      Throws:
      YamlValidationException
    • 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 interface VcsRepositoryViewerExporter
    • 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 return VcsRepositoryViewerProperties configuration.
      Specified by:
      toYaml in interface VcsRepositoryViewerExporter
      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 return VcsRepositoryViewer if found.
      Specified by:
      fromYaml in interface VcsRepositoryViewerExporter
      Parameters:
      node - yaml structure with VcsRepositoryViewer settings
      Returns:
      Specs recipient entity
      Throws:
      com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException