Enum UserType

  • All Implemented Interfaces:
    Serializable, Comparable<UserType>, java.lang.constant.Constable

    public enum UserType
    extends Enum<UserType>
    UserType indicates the type of a user. There are currently only two: normal and server. Normal users are users created from any authentication provider except the server API key authentication provider.
    • Enum Constant Detail

      • NORMAL

        public static final UserType NORMAL
      • SERVER

        public static final UserType SERVER
      • UNKNOWN

        public static final UserType UNKNOWN
    • Method Detail

      • values

        public static UserType[] 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 UserType 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
      • getTypeName

        public String getTypeName()
        Returns the human-readable name of this user type.
        Returns:
        the human-readable name of this user type.
      • fromName

        public static UserType fromName​(String name)
        Gets a UserType from a typeName; UNKNOWN if none is found.
        Parameters:
        name - the human-readable name of this user type.
        Returns:
        a UserType from a typeName; UNKNOWN if none is found.