Class VcsRoot_ChangeTableConverter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.versioning.converters.VcsRoot_ChangeTableConverter
-
public class VcsRoot_ChangeTableConverter extends Object
- Author:
- lesya Date: 01.03.2007
-
-
Constructor Summary
Constructors Constructor Description VcsRoot_ChangeTableConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convert(DBFunctions connection, Map<String,List<VcsRootXmlConverter.CheckedOutDir>> projectVcsRoots, Map<String,List<String>> projectBuildTypes)
static String
convertVcsRootToString(VcsRootXmlConverter.VcsRoot root)
Serializes VCS root contents without id to stringstatic boolean
isSecureProperty(String propertyName)
Returns true if the property is secure, i.e.static String
propertiesToString(Map<String,String> properties, boolean scrambleSecureProps)
Converts properties set to string, with optional scrambling of the properties
-
-
-
Method Detail
-
convertVcsRootToString
@NotNull public static String convertVcsRootToString(@NotNull VcsRootXmlConverter.VcsRoot root)
Serializes VCS root contents without id to string- Parameters:
root
- root to serialize- Returns:
- string representation
- See Also:
#convertStringToVcsRoot(long, String)
-
propertiesToString
@NotNull public static String propertiesToString(@NotNull Map<String,String> properties, boolean scrambleSecureProps)
Converts properties set to string, with optional scrambling of the properties- Parameters:
properties
- map of properties values.scrambleSecureProps
- if true, secure properties will be scrambled to avoid their reading in plain text- Returns:
- string properties presentation.
- See Also:
VcsUtil#stringToProperties(String)
,VcsRoot.SECURE_PROPERTY_PREFIX
-
isSecureProperty
public static boolean isSecureProperty(@NotNull String propertyName)
Returns true if the property is secure, i.e. its value should be scrambled when property persisted.- Parameters:
propertyName
- property name.- Returns:
true
if property value should be scrambled.
-
convert
public void convert(@NotNull DBFunctions connection, Map<String,List<VcsRootXmlConverter.CheckedOutDir>> projectVcsRoots, Map<String,List<String>> projectBuildTypes) throws ConvertException
- Throws:
ConvertException
-
-