jetbrains.buildServer.vcs
Interface SVcsRoot

All Superinterfaces:
VcsRoot, XmlExternalizable
All Known Subinterfaces:
VcsRootInstance

public interface SVcsRoot
extends VcsRoot, XmlExternalizable

Server side class for the vcs root.


Field Summary
 
Fields inherited from interface jetbrains.buildServer.vcs.VcsRoot
SECURE_PROPERTY_PREFIX
 
Method Summary
 void checkAccessibleFrom(SBuildType buildType)
          Checks that this VCS root is accessible from the specified build configuration
 void checkAccessibleFrom(SProject project)
          Checks that this VCS root is accessible from the specified project
 java.lang.String getDescription()
           
 int getModificationCheckInterval()
          returns modification check interval in seconds
 VcsRootScope getScope()
          Returns scope of this VCS root
 java.util.Map<SBuildType,CheckoutRules> getUsages()
           
 java.lang.String getVcsDisplayName()
          Returns VCS plugin display name
 boolean isAccessibleFrom(SBuildType buildType)
          Returns true if VCS roots with this scope are accessible from the specified build configuration.
 boolean isUseDefaultModificationCheckInterval()
          Returns if 'use default modification check interval' mode is enabled for the root.
 void restoreDefaultModificationCheckInterval()
          Switched to 'use default modification check interval' mode.
 void setModificationCheckInterval(int value)
          Changes modification check interval for the root.
 
Methods inherited from interface jetbrains.buildServer.vcs.VcsRoot
convertToPresentableString, convertToString, getId, getName, getProperties, getPropertiesHash, getProperty, getProperty, getPublicProperties, getVcsName
 
Methods inherited from interface jetbrains.buildServer.XmlExternalizable
writeTo
 

Method Detail

getScope

VcsRootScope getScope()
Returns scope of this VCS root

Returns:
scope of this VCS root

getModificationCheckInterval

int getModificationCheckInterval()
returns modification check interval in seconds

Returns:
modification check interval configured for the root.

setModificationCheckInterval

void setModificationCheckInterval(int value)
Changes modification check interval for the root.

Parameters:
value - seconds.

isUseDefaultModificationCheckInterval

boolean isUseDefaultModificationCheckInterval()
Returns if 'use default modification check interval' mode is enabled for the root.

Returns:
if 'use default modification check interval' mode is enabled for the root.

restoreDefaultModificationCheckInterval

void restoreDefaultModificationCheckInterval()
Switched to 'use default modification check interval' mode.


isAccessibleFrom

boolean isAccessibleFrom(@NotNull
                         SBuildType buildType)
Returns true if VCS roots with this scope are accessible from the specified build configuration.

Parameters:
buildType - build configuration
Returns:
true if VCS roots with this scope are accessible from the specified build configuration.

checkAccessibleFrom

void checkAccessibleFrom(@NotNull
                         SBuildType buildType)
                         throws InvalidVcsRootScopeException
Checks that this VCS root is accessible from the specified build configuration

Parameters:
buildType - build configuration
Throws:
InvalidVcsRootScopeException - if VCS root is inaccessible

checkAccessibleFrom

void checkAccessibleFrom(@NotNull
                         SProject project)
                         throws InvalidVcsRootScopeException
Checks that this VCS root is accessible from the specified project

Parameters:
project - project
Throws:
InvalidVcsRootScopeException - if VCS root is not accessible
Since:
5.0

getDescription

@NotNull
java.lang.String getDescription()
Returns:
short human readable description of the root. Composed by underlying VCS support.
Since:
4.5

getVcsDisplayName

@Nullable
java.lang.String getVcsDisplayName()
Returns VCS plugin display name

Returns:
see above, returns null if VCS plugin corresponding to VCS root does not exist
Since:
4.5

getUsages

@NotNull
java.util.Map<SBuildType,CheckoutRules> getUsages()
Returns:
all usages of this VCS root in various build configurations.
Since:
6.5