Enum Class GenericType

java.lang.Object
java.lang.Enum<GenericType>
com.bonitasoft.processbuilder.enums.GenericType
All Implemented Interfaces:
Serializable, Comparable<GenericType>, Constable

public enum GenericType extends Enum<GenericType>
Defines the valid generic configuration types for system-wide settings.

This enumeration provides a type-safe way to reference generic configuration parameters that are stored in PBConfiguration with type "Generic". These are typically system-level settings that don't fit into other specific categories.

Since:
1.0
Author:
Bonitasoft
  • Enum Constant Details

    • LANG

      public static final GenericType LANG
      Language configuration for the application.

      Stores the default language code (e.g., "en", "es", "fr") used for internationalization and localization throughout the application.

    • HOST

      public static final GenericType HOST
      Host URL configuration for the application.

      Stores the base URL of the application host, used for generating absolute links in notifications, emails, and other external communications.

    • STORAGE_ROOT_DEFAULT

      public static final GenericType STORAGE_ROOT_DEFAULT
      Default storage root directory configuration.

      Stores the default root directory path for document storage. This value is used as the default location for DOCUMENTS_FOLDER when no specific folder is configured.

  • Method Details

    • values

      public static GenericType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GenericType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Returns the unique string key associated with this generic type.
      Returns:
      The configuration key (e.g., "lang", "host").
    • getDescription

      public String getDescription()
      Returns the description of this generic type.
      Returns:
      The human-readable description.
    • isValid

      public static boolean isValid(String input)
      Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.
      Parameters:
      input - The string to validate.
      Returns:
      true if the string is a valid enum constant name, false otherwise.
    • getAllData

      public static Map<String,String> getAllData()
      Retrieves all generic types as a read-only Map where the key is the technical key and the value is the description.
      Returns:
      An unmodifiable map containing all generic type data (Key -> Description).
    • getAllKeysList

      public static List<String> getAllKeysList()
      Retrieves all technical keys as a read-only List of Strings.
      Returns:
      An unmodifiable list containing all generic type keys.