Interface FlagDefinition

All Superinterfaces:
CatalogType, PermissionDefinition

public interface FlagDefinition extends PermissionDefinition
Represents a flag definition which can hold one or more Flag permissions.
  • Method Details

    • getDefaultValue

      Tristate getDefaultValue()
      Gets the default value.
      Returns:
      The default value
    • getFlagData

      List<FlagData> getFlagData()
      Gets the FlagData associated with this definition.
      Returns:
      The flag data
    • getFlags

      List<Flag> getFlags()
      Gets a list of Flag's associated with this definition.
      Returns:
      The list of flags
    • setDefaultValue

      void setDefaultValue(Tristate value)
      Sets the default value of definition.
      Parameters:
      value - The default value
    • builder

      static FlagDefinition.Builder builder()
      Gets a new claim builder instance for FlagDefinition.Builder.
      Returns:
      A new claim builder instance