Class BaseVcsRootConverter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.versioning.converters.BaseSqlConverter
-
- jetbrains.buildServer.serverSide.versioning.converters.BaseVcsRootConverter
-
- All Implemented Interfaces:
Converter
,XmlConverter
- Direct Known Subclasses:
AddSvnWorkingCopyPropertyConverter
,EncodeVcsRootPasswordsConverter
,PerforceAddWorkspaceOptionConverter
,SvnExternalsPropertyConverter
public abstract class BaseVcsRootConverter extends BaseSqlConverter implements XmlConverter
Allows to convert vcs root properties in vcs roots configuration file and root versions in database.
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.versioning.converters.BaseSqlConverter
mySqlStatements
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseVcsRootConverter()
protected
BaseVcsRootConverter(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
convertDB(DBFunctions conn)
void
convertInternal(DBFunctions dbf, File teamCityDataDir)
protected abstract Map<String,String>
convertRootProperties(String vcsName, Map<String,String> original)
Converts properties of the vcs rootvoid
convertXml(File configDir)
static Map<String,String>
readParameters(org.jdom.Element parametersElement)
protected abstract boolean
supports(String vcsName)
Return true if converter can work with properties of the specified vcs support-
Methods inherited from class jetbrains.buildServer.serverSide.versioning.converters.BaseSqlConverter
convert, convertInternal, error, error, getSqlStatements, getSqlStatements, info, isDebugEnabled, toString, warn
-
-
-
-
Constructor Detail
-
BaseVcsRootConverter
protected BaseVcsRootConverter()
-
BaseVcsRootConverter
protected BaseVcsRootConverter(String name)
-
-
Method Detail
-
convertInternal
public void convertInternal(@NotNull DBFunctions dbf, @NotNull File teamCityDataDir) throws Exception
- Overrides:
convertInternal
in classBaseSqlConverter
- Throws:
Exception
-
convertDB
public void convertDB(DBFunctions conn)
-
convertXml
public void convertXml(File configDir)
- Specified by:
convertXml
in interfaceXmlConverter
-
convertRootProperties
protected abstract Map<String,String> convertRootProperties(@NotNull String vcsName, @NotNull Map<String,String> original)
Converts properties of the vcs root- Parameters:
vcsName
- name of the vcs supportoriginal
- properties of the vcs root- Returns:
-
supports
protected abstract boolean supports(@NotNull String vcsName)
Return true if converter can work with properties of the specified vcs support- Parameters:
vcsName
- name of the vcs support- Returns:
-
-