Class VcsSettings

  • All Implemented Interfaces:
    Loggable, VcsDataObject
    Direct Known Subclasses:
    VcsRootEntry

    public class VcsSettings
    extends Object
    implements Loggable, VcsDataObject
    This entity contains:
    • Vcs plugin name
    • Access parameters for version control server (in VcsRoot)
    • checkout rules
    Since:
    TC 8.0
    Author:
    kir
    • Constructor Detail

      • VcsSettings

        public VcsSettings​(@NotNull
                           VcsRoot vcsRoot,
                           @NotNull
                           String checkoutRules)
      • VcsSettings

        public VcsSettings​(long settingsId,
                           @NotNull
                           String vcsName,
                           @Nullable
                           String displayName,
                           @NotNull
                           String checkoutRules,
                           @NotNull
                           Map<String,​String> properties,
                           @NotNull
                           String externalId)
    • Method Detail

      • getVcsRoot

        @NotNull
        public VcsRoot getVcsRoot()
        Get VCS Root, associated with these settings.
      • getSettingsId

        public long getSettingsId()
        Returns:
        associated id for those VCS settings
      • getDisplayName

        @Nullable
        public String getDisplayName()
        Returns:
        The name to be shown to user
      • getVcsName

        @NotNull
        public String getVcsName()
        Returns:
        VCS plugin name (so far, in TeamCity sense)
      • getProperties

        @NotNull
        public Map<String,​String> getProperties()
        Returns:
        VCS configuration properties
      • getCheckoutRulesSpecification

        @NotNull
        public String getCheckoutRulesSpecification()
        Returns:
        checkout rules specification
      • describe

        @NotNull
        public String describe​(boolean verbose)
        Specified by:
        describe in interface Loggable
        Parameters:
        verbose - verbosity of object description
        Returns:
        description of this object. If verbose is true, description should have mode details.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object