Interface TemplateDTO


public interface TemplateDTO
A reusable set of member privilege values owned by a player.

Templates can be applied to a member through TemplateProvider.

  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull UUID
    Gets the UUID of the player who owns the template.
    @NotNull Map<PriFlag,Boolean>
    Gets all explicitly stored privilege values in this template.
    @NotNull Boolean
    getFlagValue(@NotNull PriFlag flag)
    Gets the value of a privilege flag in this template.
    @NotNull Integer
    Gets the template identifier.
    @NotNull String
    Gets the template name.
  • Method Details

    • getId

      @NotNull @NotNull Integer getId()
      Gets the template identifier.
      Returns:
      the template identifier
    • getCreator

      @NotNull @NotNull UUID getCreator()
      Gets the UUID of the player who owns the template.
      Returns:
      the creator's UUID
    • getName

      @NotNull @NotNull String getName()
      Gets the template name.
      Returns:
      the template name
    • getFlagValue

      @NotNull @NotNull Boolean getFlagValue(@NotNull @NotNull PriFlag flag)
      Gets the value of a privilege flag in this template.
      Parameters:
      flag - the privilege flag
      Returns:
      the configured value, or the flag's default value when no value is stored
    • getFlagsValue

      @NotNull @NotNull Map<PriFlag,Boolean> getFlagsValue()
      Gets all explicitly stored privilege values in this template.
      Returns:
      a map from privilege flags to values