Interface VcsRoot

    • Method Detail

      • getId

        long getId()
        returns root internal id
        Returns:
        see above
      • getName

        @NotNull
        String getName()
        returns descriptive name of the vcs root
        Returns:
        see above
      • getVcsName

        @NotNull
        String getVcsName()
        Returns name of the corresponding version control.
        Returns:
        name of the corresponding version control
      • getProperties

        @NotNull
        Map<String,​String> getProperties()
        Returns mapping from a property name to its value
        Returns:
        map of all defined properties
      • getProperty

        @Nullable
        String getProperty​(@NotNull
                           String propertyName)
        Provides specified property value
        Parameters:
        propertyName - name of the property whose value is requested
        Returns:
        value of a specified property
      • getProperty

        @Nullable
        @Contract("_,null->null;_,!null->!null")
        String getProperty​(@NotNull
                           String propertyName,
                           @Nullable
                           String defaultValue)
        Provides specified property value or default value if property is not defined
        Parameters:
        propertyName - name of the property whose value is requested
        defaultValue - default value which is returned if property value was not specified explicitly
        Returns:
        - value of a specified property or 'defaultValue' if it is not defined
      • getExternalId

        @NotNull
        String getExternalId()
        Returns:
        External VCS Root ID in VCS services and on build agent. If unset (in tests, for instance), empty string is returned.
        Since:
        2021.2