Package io.jans.model

Enum GluuUserRole

java.lang.Object
java.lang.Enum<GluuUserRole>
io.jans.model.GluuUserRole
All Implemented Interfaces:
io.jans.orm.annotation.AttributeEnum, Serializable, Comparable<GluuUserRole>, java.lang.constant.Constable

public enum GluuUserRole extends Enum<GluuUserRole> implements io.jans.orm.annotation.AttributeEnum
User role
Author:
Yuriy Movchan Date: 11.03.2010
  • Enum Constant Details

  • Method Details

    • values

      public static GluuUserRole[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GluuUserRole valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Specified by:
      getValue in interface io.jans.orm.annotation.AttributeEnum
    • getRoleName

      public String getRoleName()
    • getDisplayName

      public String getDisplayName()
    • getByValue

      public static GluuUserRole getByValue(String value)
    • getByValues

      public static GluuUserRole[] getByValues(String[] values)
    • equals

      public static boolean equals(GluuUserRole[] roles1, GluuUserRole[] roles2)
    • containsRole

      public static boolean containsRole(GluuUserRole[] roles, GluuUserRole role)
    • resolveByValue

      public Enum<? extends io.jans.orm.annotation.AttributeEnum> resolveByValue(String value)
      Specified by:
      resolveByValue in interface io.jans.orm.annotation.AttributeEnum
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GluuUserRole>