Class InternalProperties


  • public class InternalProperties
    extends Object
    A wrapper over the TeamCityProperties methods intended to be used in JSP pages and tags.
    Since:
    7.1.1
    Author:
    Pavel Sher, Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    • Constructor Detail

      • InternalProperties

        public InternalProperties()
    • Method Detail

      • getBoolean

        public static Boolean getBoolean​(@NotNull
                                         String propName)
        Parameters:
        propName - name of the property
        Returns:
        boolean value for internal property with specified name
      • getBooleanOrTrue

        public static Boolean getBooleanOrTrue​(@NotNull
                                               String propName)
        Parameters:
        propName - name of the property
        Returns:
        boolean value for internal property with specified name or true if property is not defined
      • getInteger

        public static int getInteger​(@NotNull
                                     String propName,
                                     int defaultValue)
        Parameters:
        propName - name of the property
        defaultValue - the default value
        Returns:
        integer value for internal property with specified name
      • getProperty

        public static String getProperty​(@NotNull
                                         String propName,
                                         String defaultValue)
        Parameters:
        propName - name of the property
        defaultValue - the default value
        Returns:
        value for internal property with specified name
      • getIntervalMilliseconds

        public static long getIntervalMilliseconds​(@NotNull
                                                   String propName,
                                                   long defaultValue)
        Parameters:
        propName - name of the property
        defaultValue - the default value
        Returns:
        long value for internal property with specified name
        Since:
        2020.2