public class RawRepositoryConfigurationXmlConverterImpl extends Object implements RawRepositoryConfigurationXmlConverter
Constructor and Description |
---|
RawRepositoryConfigurationXmlConverterImpl(XStreamFactory xStreamFactory) |
Modifier and Type | Method and Description |
---|---|
String |
asXml(PartialVcsRepositoryData configuration)
Extract configuration as xml string from configuration UI object.
|
String |
asXml(RawRepositoryConfiguration configuration)
Extract configuration as xml.
|
String |
emptyXml()
Return repository configuration xml with no data.
|
RawRepositoryConfiguration |
fromEntity(RepositoryDataEntity entity)
Extract configuration from DB object.
|
RawRepositoryConfiguration |
fromVcsData(PartialVcsRepositoryData repositoryData)
This is used when creating branches, so it's pretty safe to change assuming you only override branch.
|
static boolean |
isEntityIn514Format(RepositoryDataEntity entity) |
public RawRepositoryConfigurationXmlConverterImpl(XStreamFactory xStreamFactory)
@NotNull public final RawRepositoryConfiguration fromVcsData(@NotNull PartialVcsRepositoryData repositoryData)
fromVcsData
in interface RawRepositoryConfigurationXmlConverter
public static boolean isEntityIn514Format(@NotNull RepositoryDataEntity entity)
@NotNull public final RawRepositoryConfiguration fromEntity(@NotNull RepositoryDataEntity entity)
RawRepositoryConfigurationXmlConverter
fromEntity
in interface RawRepositoryConfigurationXmlConverter
@NotNull public String emptyXml()
RawRepositoryConfigurationXmlConverter
emptyXml
in interface RawRepositoryConfigurationXmlConverter
@NotNull public String asXml(@NotNull PartialVcsRepositoryData configuration)
RawRepositoryConfigurationXmlConverter
asXml
in interface RawRepositoryConfigurationXmlConverter
@NotNull public final String asXml(@NotNull RawRepositoryConfiguration configuration)
RawRepositoryConfigurationXmlConverter
asXml
in interface RawRepositoryConfigurationXmlConverter
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.