Class RawRepositoryConfigurationXmlConverterImpl
java.lang.Object
com.atlassian.bamboo.vcs.configuration.service.RawRepositoryConfigurationXmlConverterImpl
- All Implemented Interfaces:
RawRepositoryConfigurationXmlConverter
public class RawRepositoryConfigurationXmlConverterImpl
extends Object
implements RawRepositoryConfigurationXmlConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
asXml
(@NotNull PartialVcsRepositoryData configuration) Extract configuration as xml string from configuration UI object.final @NotNull String
asXml
(@NotNull RawRepositoryConfiguration configuration) Extract configuration as xml.@NotNull String
emptyXml()
Return repository configuration xml with no data.final @NotNull RawRepositoryConfiguration
fromEntity
(@NotNull RepositoryDataEntity entity) Extract configuration from DB object.final @NotNull RawRepositoryConfiguration
fromVcsData
(@NotNull PartialVcsRepositoryData repositoryData) This is used when creating branches, so it's pretty safe to change assuming you only override branch.static boolean
isEntityIn514Format
(@NotNull RepositoryDataEntity entity)
-
Constructor Details
-
RawRepositoryConfigurationXmlConverterImpl
-
-
Method Details
-
fromVcsData
@NotNull public final @NotNull RawRepositoryConfiguration fromVcsData(@NotNull @NotNull PartialVcsRepositoryData repositoryData) This is used when creating branches, so it's pretty safe to change assuming you only override branch.- Specified by:
fromVcsData
in interfaceRawRepositoryConfigurationXmlConverter
-
isEntityIn514Format
-
fromEntity
@NotNull public final @NotNull RawRepositoryConfiguration fromEntity(@NotNull @NotNull RepositoryDataEntity entity) Description copied from interface:RawRepositoryConfigurationXmlConverter
Extract configuration from DB object.- Specified by:
fromEntity
in interfaceRawRepositoryConfigurationXmlConverter
-
emptyXml
Description copied from interface:RawRepositoryConfigurationXmlConverter
Return repository configuration xml with no data.- Specified by:
emptyXml
in interfaceRawRepositoryConfigurationXmlConverter
-
asXml
Description copied from interface:RawRepositoryConfigurationXmlConverter
Extract configuration as xml string from configuration UI object.- Specified by:
asXml
in interfaceRawRepositoryConfigurationXmlConverter
-
asXml
@NotNull public final @NotNull String asXml(@NotNull @NotNull RawRepositoryConfiguration configuration) Description copied from interface:RawRepositoryConfigurationXmlConverter
Extract configuration as xml.- Specified by:
asXml
in interfaceRawRepositoryConfigurationXmlConverter
-