Class Properties

java.lang.Object
overit.geocallapp.utilities.config.Properties
Direct Known Subclasses:
PropertiesAI, PropertiesAIAssistant.DispatcherAssistant, PropertiesAssets.Asset, PropertiesAssetsOrchestrator.Integration, PropertiesBooking, PropertiesBundler.Configuration, PropertiesCalendars.WorkShift, PropertiesCEE, PropertiesDocumentsOrchestrator.Integration, PropertiesExecution.Accounting, PropertiesExecution.ResourceIntervention, PropertiesExecution.WorkOrder, PropertiesForecast.ForecastCapacity, PropertiesGPSTracking.GPSTimedPosition, PropertiesInventory, PropertiesLocations.Cartography, PropertiesLocations.Geocoding, PropertiesLocations.Location, PropertiesMessages.Message, PropertiesOrganizationalStructures.OrganizationalStructure, PropertiesPlanningOrchestrator.Integration, PropertiesProject, PropertiesResources.Resource, PropertiesScheduling.Agenda, PropertiesScheduling.DailyPlan, PropertiesScheduling.Optimization, PropertiesScheduling.Scheduling, PropertiesScheduling.SchedulingLock, PropertiesSchedulingOrchestrator.Integration, PropertiesTools.Tool, PropertiesWorkforceOrchestrator.Integration, PropertiesWorkOrders.WorkOrder, PropertiesWorkOrdersOrchestrator.Integration, SchedulingPermissionsUtils

public abstract class Properties extends Object
Abstract utility class that provides methods for accessing configuration properties from both company-specific and system-wide settings. The class is designed to be extended by specialized property classes that expose specific configuration properties for different modules of the application.
Since:
1.0
  • Constructor Details

    • Properties

      protected Properties()
  • Method Details

    • getBooleanProperty

      protected static boolean getBooleanProperty(String propertyName)
      Retrieves a boolean property value from the company configuration. This method uses a default value of false if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the boolean value of the property, or false if not found
    • getBooleanProperty

      protected static boolean getBooleanProperty(String propertyName, boolean defaultValue)
      Retrieves a boolean property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the boolean value of the property, or the default value if not found
    • getStringProperty

      protected static String getStringProperty(String propertyName)
      Retrieves a string property value from the company configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the string value of the property, or null if not found
    • getStringProperty

      protected static String getStringProperty(String propertyName, String defaultValue)
      Retrieves a string property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the string value of the property, or the default value if not found
    • getIntegerProperty

      protected static Integer getIntegerProperty(String propertyName)
      Retrieves an integer property value from the company configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the integer value of the property, or null if not found
    • getIntegerProperty

      protected static Integer getIntegerProperty(String propertyName, Integer defaultValue)
      Retrieves an integer property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the integer value of the property, or the default value if not found
    • getLongProperty

      protected static Long getLongProperty(String propertyName)
      Retrieves a long property value from the company configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the long value of the property, or null if not found
    • getLongProperty

      protected static Long getLongProperty(String propertyName, Long defaultValue)
      Retrieves a long property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the long value of the property, or the default value if not found
    • getStringListProperty

      protected static List<String> getStringListProperty(String propertyName)
      Retrieves a list of strings property value from the company configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the list of strings value of the property, or null if not found
    • getStringListProperty

      protected static List<String> getStringListProperty(String propertyName, List<String> defaultValue)
      Retrieves a list of strings property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the list of strings value of the property, or the default value if not found
    • getDoubleProperty

      protected static Double getDoubleProperty(String propertyName)
      Retrieves a double property value from the company configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the double value of the property, or null if not found
    • getDoubleProperty

      protected static Double getDoubleProperty(String propertyName, Double defaultValue)
      Retrieves a double property value from the company configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the double value of the property, or the default value if not found
    • getStringSystemProperty

      protected static String getStringSystemProperty(String propertyName)
      Retrieves a string property value from the system-wide configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the string value of the property, or null if not found
    • getStringSystemProperty

      protected static String getStringSystemProperty(String propertyName, String defaultValue)
      Retrieves a string property value from the system-wide configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the string value of the property, or the default value if not found
    • getIntegerSystemProperty

      protected static Integer getIntegerSystemProperty(String propertyName)
      Retrieves an integer property value from the system-wide configuration. This method uses a default value of null if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the integer value of the property, or null if not found
    • getIntegerSystemProperty

      protected static Integer getIntegerSystemProperty(String propertyName, Integer defaultValue)
      Retrieves an integer property value from the system-wide configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the integer value of the property, or the default value if not found
    • getBooleanSystemProperty

      protected static boolean getBooleanSystemProperty(String propertyName)
      Retrieves a boolean property value from the system-wide configuration. This method uses a default value of false if the property is not found.
      Parameters:
      propertyName - the name of the property to retrieve
      Returns:
      the boolean value of the property, or false if not found
    • getBooleanSystemProperty

      protected static boolean getBooleanSystemProperty(String propertyName, boolean defaultValue)
      Retrieves a boolean property value from the system-wide configuration with a specified default value.
      Parameters:
      propertyName - the name of the property to retrieve
      defaultValue - the default value to return if the property is not found
      Returns:
      the boolean value of the property, or the default value if not found