Class SystemPropertyAPI

    • Constructor Detail

      • SystemPropertyAPI

        public SystemPropertyAPI()
    • Method Detail

      • getBooleanValue

        public boolean getBooleanValue​(UserContext uc,
                                       String key,
                                       boolean defaultValue)
        Returns the boolean value of the system property with the given key if it exists. If the system property does not exists the provided default value will be returned.
        Parameters:
        uc - user context for database transactions.
        key - of the system property.
        defaultValue - to return if no system property was found for the given key.
        Returns:
        the boolean value of the system property with the given key if it exists and the provided default value otherwise.
      • getMfaSettings

        public IMfaSettings getMfaSettings​(UserContext uc)
        Gets the Multi-Factor Authentication (MFA) settings for the system.
        Parameters:
        uc - the UserContext to use
        Returns:
        The MFA settings for the system.
        Since:
        8.4.0
      • getStringValue

        public String getStringValue​(UserContext uc,
                                     String key,
                                     String defaultValue)
        Returns the String value of the system property with the given key if it exists. If the system property does not exists the provided default value will be returned.
        Parameters:
        uc - user context for database transactions.
        key - of the system property.
        defaultValue - to return if no system property was found for the given key.
        Returns:
        the String value of the system property with the given key if it exists and the provided default value otherwise.