jetbrains.buildServer.users
Class VcsUsernamePropertyKey

java.lang.Object
  extended by jetbrains.buildServer.users.PropertyKey
      extended by jetbrains.buildServer.users.PluginPropertyKey
          extended by jetbrains.buildServer.users.VcsUsernamePropertyKey

public class VcsUsernamePropertyKey
extends PluginPropertyKey

Represents VCS username property from the user profile


Field Summary
static java.lang.String ANY_VCS_ROOT_PREFIX
           
static java.lang.String VCS_ROOT_PREFIX
           
 
Fields inherited from class jetbrains.buildServer.users.PluginPropertyKey
PLUGIN_PROPERTY_PREFIX
 
Constructor Summary
VcsUsernamePropertyKey()
          Constructor for default VCS username
VcsUsernamePropertyKey(java.lang.String propertyKey)
          Constructor
VcsUsernamePropertyKey(VcsRoot vcsRoot)
          Constructor
VcsUsernamePropertyKey(VcsSupportConfig vcsSupport)
          Constructor
 
Method Summary
 java.lang.String getVcsName()
          Returns name of VCS plugin
 long getVcsRootId()
          Returns VCS root id from the property or -1 if this property corresponds to any VCS root
static boolean isVcsUsernamePropertyKey(java.lang.String propertyKey)
          Returns true if the specified string representation of the property key represents VCS property key
 
Methods inherited from class jetbrains.buildServer.users.PluginPropertyKey
getKey, getPluginName, isPluginPropertyKey
 
Methods inherited from class jetbrains.buildServer.users.PropertyKey
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VCS_ROOT_PREFIX

public static final java.lang.String VCS_ROOT_PREFIX
See Also:
Constant Field Values

ANY_VCS_ROOT_PREFIX

public static final java.lang.String ANY_VCS_ROOT_PREFIX
See Also:
Constant Field Values
Constructor Detail

VcsUsernamePropertyKey

public VcsUsernamePropertyKey(@NotNull
                              VcsRoot vcsRoot)
Constructor

Parameters:
vcsRoot - VCS root to associate username with

VcsUsernamePropertyKey

public VcsUsernamePropertyKey(@NotNull
                              VcsSupportConfig vcsSupport)
Constructor

Parameters:
vcsSupport - VCS plugin to associate username with

VcsUsernamePropertyKey

public VcsUsernamePropertyKey()
Constructor for default VCS username


VcsUsernamePropertyKey

public VcsUsernamePropertyKey(@NotNull
                              java.lang.String propertyKey)
Constructor

Parameters:
propertyKey - property key from database
Method Detail

getVcsRootId

public long getVcsRootId()
Returns VCS root id from the property or -1 if this property corresponds to any VCS root

Returns:
VCS root id or -1

getVcsName

public java.lang.String getVcsName()
Returns name of VCS plugin

Returns:
name of VCS plugin

isVcsUsernamePropertyKey

public static boolean isVcsUsernamePropertyKey(@NotNull
                                               java.lang.String propertyKey)
Returns true if the specified string representation of the property key represents VCS property key

Parameters:
propertyKey - property key
Returns:
true if property key is VCS property key