Enum Class RoleType

java.lang.Object
java.lang.Enum<RoleType>
com.elitesland.ystdms.sys.enums.RoleType
All Implemented Interfaces:
Serializable, Comparable<RoleType>, Constable

public enum RoleType extends Enum<RoleType>
角色类型枚举
Since:
2026-01-06
  • Enum Constant Details

    • SYSTEM

      public static final RoleType SYSTEM
      系统角色
    • BUSINESS

      public static final RoleType BUSINESS
      业务角色
    • CUSTOM

      public static final RoleType CUSTOM
      自定义角色
  • Method Details

    • values

      public static RoleType[] 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 RoleType 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
    • fromCode

      public static RoleType fromCode(String code)
      根据code获取枚举