Class PriFlag

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

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

    • PriFlag

      public PriFlag(@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 PriFlag 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 privilege flag.
      Specified by:
      getConfigurationDescKey in class Flag
      Returns:
      the configuration description key
    • getConfigurationDefaultKey

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

      public String getConfigurationEnableKey()
      Returns the configuration enable key for this privilege 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