Class DefaultVcsRepositoryViewerExporter

    • Constructor Detail

      • DefaultVcsRepositoryViewerExporter

        public DefaultVcsRepositoryViewerExporter()
    • Method Detail

      • 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: 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