Enum Class ERole

java.lang.Object
java.lang.Enum<ERole>
it.unicam.cs.ids2425.FilieraAgricola.model.ERole
All Implemented Interfaces:
Serializable, Comparable<ERole>, Constable

public enum ERole extends Enum<ERole>
Enumerazione che definisce i ruoli autorizzativi gestiti dalla piattaforma. Questi ruoli permettono il controllo granulare degli accessi e delle funzionalità utente (es. Produttore, Distributore, ecc.).
  • Enum Constant Details

    • ROLE_PRODUTTORE

      public static final ERole ROLE_PRODUTTORE
    • ROLE_TRASFORMATORE

      public static final ERole ROLE_TRASFORMATORE
    • ROLE_DISTRIBUTORE

      public static final ERole ROLE_DISTRIBUTORE
    • ROLE_CURATORE

      public static final ERole ROLE_CURATORE
    • ROLE_ANIMATORE

      public static final ERole ROLE_ANIMATORE
    • ROLE_ACQUIRENTE

      public static final ERole ROLE_ACQUIRENTE
    • ROLE_UTENTEGENERICO

      public static final ERole ROLE_UTENTEGENERICO
    • ROLE_GESTORE

      public static final ERole ROLE_GESTORE
  • Method Details

    • values

      public static ERole[] 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 ERole 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