Class EnvFlag

java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.Flag
cn.lunadeer.dominion.api.dtos.flag.EnvFlag

public class EnvFlag extends Flag
Represents an environment flag in the Dominion system. This class extends the Flag class and provides specific configuration keys for environment-related flags.
  • Constructor Details

    • EnvFlag

      public EnvFlag(@NotNull @NotNull String flag_name, @NotNull @NotNull String display_name, @NotNull @NotNull String description, @NotNull @NotNull Boolean default_value, @NotNull @NotNull Boolean enable)
      Constructs a new EnvFlag with the specified parameters.
      Parameters:
      flag_name - the name of the flag
      display_name - the display name of the flag
      description - the description of the flag
      default_value - the default value of the flag
      enable - the enable status of the flag
  • Method Details

    • getConfigurationDescKey

      public String getConfigurationDescKey()
      Returns the configuration description key for this environment flag.
      Specified by:
      getConfigurationDescKey in class Flag
      Returns:
      the configuration description key
    • getConfigurationDefaultKey

      public String getConfigurationDefaultKey()
      Returns the configuration default key for this environment flag.
      Specified by:
      getConfigurationDefaultKey in class Flag
      Returns:
      the configuration default key
    • getConfigurationEnableKey

      public String getConfigurationEnableKey()
      Returns the configuration enable key for this environment flag.
      Specified by:
      getConfigurationEnableKey in class Flag
      Returns:
      the configuration enable key
    • getConfigurationNameKey

      public String getConfigurationNameKey()
      Description copied from class: Flag
      Returns the configuration key for the name of this flag.
      Specified by:
      getConfigurationNameKey in class Flag
      Returns:
      the configuration key for the name