|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.impl.VcsRootImpl
public class VcsRootImpl
Version control connection settings.
| Field Summary | |
|---|---|
protected static java.lang.String |
CHECKOUT_ROOT
|
protected java.util.Map<java.lang.String,java.lang.String> |
myProperties
|
protected java.lang.String |
myVcsName
|
static java.lang.String |
VCS_NAME_PROP
|
static java.lang.String |
VCS_ROOT_NAME_PROP
|
| Fields inherited from interface jetbrains.buildServer.vcs.VcsRoot |
|---|
SECURE_PROPERTY_PREFIX |
| Constructor Summary | |
|---|---|
VcsRootImpl(long id,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates new settings on id and properties set. |
|
VcsRootImpl(long id,
java.lang.String vcsName)
Creates new settings object on id and associated version control name. |
|
| Method Summary | |
|---|---|
void |
addAllProperties(java.util.Map<java.lang.String,java.lang.String> map)
Adds number of properties. |
void |
addProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Adds new property. |
java.lang.String |
convertToPresentableString()
Returns VCS root serialized to string with secure properties values replaced with *****. |
java.lang.String |
convertToString()
Returns the root serialized to string value |
java.util.Map<java.lang.String,java.lang.String> |
createMap()
Creates map containing all connection properties. |
long |
getId()
returns root unique identifier |
java.lang.String |
getName()
returns descriptive name of the vcs root |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns mapping from a property name to its value |
long |
getPropertiesHash()
Returns hash code computed on the base of this VCS root properties. |
java.lang.String |
getProperty(java.lang.String propertyName)
Provides specified property value |
java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Provides specified property value or default value if property is not defined |
java.util.Map<java.lang.String,java.lang.String> |
getPublicProperties()
|
java.lang.String |
getVcsName()
Returns name of the corresponding version control. |
static boolean |
isEquivalentRoots(VcsRoot root1,
VcsRoot root2)
Checks whether the specified VCS roots are equivalent. |
static boolean |
isSecureProperty(java.lang.String propertyName)
Returns true if the property is secure, i.e. |
static java.lang.String |
propertiesToString(java.util.Map<java.lang.String,java.lang.String> properties)
Converts properties set to string. |
static java.lang.String |
propertiesToString(java.util.Map<java.lang.String,java.lang.String> properties,
boolean scrambleSecureProps)
|
void |
setName(java.lang.String name)
Changes connecton name. |
static java.util.Map<java.lang.String,java.lang.String> |
stringToProperties(java.lang.String string)
Converts string to map of properties. |
java.lang.String |
toString()
|
static java.lang.String |
unescapeStr(java.lang.String name)
Replaces '\-' with '\n' and '\\' with '\' and '\_' with = |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String myVcsName
protected final java.util.Map<java.lang.String,java.lang.String> myProperties
@NonNls public static final java.lang.String VCS_NAME_PROP
@NonNls public static final java.lang.String VCS_ROOT_NAME_PROP
@NonNls protected static final java.lang.String CHECKOUT_ROOT
| Constructor Detail |
|---|
public VcsRootImpl(long id,
java.util.Map<java.lang.String,java.lang.String> properties)
id - vcs root id.properties - settings parameters.
public VcsRootImpl(long id,
java.lang.String vcsName)
id - vcs root id.vcsName - version control name.| Method Detail |
|---|
public java.lang.String getName()
VcsRoot
getName in interface VcsRootpublic long getId()
VcsRoot
getId in interface VcsRootpublic java.util.Map<java.lang.String,java.lang.String> getPublicProperties()
getPublicProperties in interface VcsRoot
public void addProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - property name.propertyValue - property value.
public void addAllProperties(@NotNull
java.util.Map<java.lang.String,java.lang.String> map)
map - properties map.public java.lang.String getVcsName()
VcsRoot
getVcsName in interface VcsRootpublic java.lang.String getProperty(java.lang.String propertyName)
VcsRoot
getProperty in interface VcsRootpropertyName - name of the property whose value is requested
public java.lang.String getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
VcsRoot
getProperty in interface VcsRootpropertyName - name of the property whose value is requesteddefaultValue - default value which is returned if property value was not specified explicitly
public java.util.Map<java.lang.String,java.lang.String> getProperties()
VcsRoot
getProperties in interface VcsRootpublic java.lang.String convertToString()
VcsRoot
convertToString in interface VcsRootpublic java.lang.String convertToPresentableString()
VcsRoot
convertToPresentableString in interface VcsRootpublic long getPropertiesHash()
VcsRoot
getPropertiesHash in interface VcsRootpublic static java.lang.String propertiesToString(java.util.Map<java.lang.String,java.lang.String> properties)
properties - map of properties values.
stringToProperties(String)
public static java.lang.String propertiesToString(java.util.Map<java.lang.String,java.lang.String> properties,
boolean scrambleSecureProps)
public static java.lang.String unescapeStr(java.lang.String name)
name - string where replacements have to be made
public static boolean isSecureProperty(java.lang.String propertyName)
propertyName - property name.
true if property value should be scrambled.public static java.util.Map<java.lang.String,java.lang.String> stringToProperties(java.lang.String string)
string - original string.
propertiesToString(java.util.Map)public java.util.Map<java.lang.String,java.lang.String> createMap()
public void setName(@NotNull
java.lang.String name)
name - new connection name.
public static boolean isEquivalentRoots(VcsRoot root1,
VcsRoot root2)
root1 - VCS rootroot2 - VCS root
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||