Enum Class MenuType

java.lang.Object
java.lang.Enum<MenuType>
io.github.xezzon.zeroweb.metadata.MenuType
All Implemented Interfaces:
Serializable, Comparable<MenuType>, Constable

public enum MenuType extends Enum<MenuType>
菜单类型
  • Enum Constant Details

    • ROUTE

      public static final MenuType ROUTE
      路由 路径格式为 `/menu/submenu`
    • EMBEDDED

      public static final MenuType EMBEDDED
      嵌入页面。会在当前页面嵌入一个外部网页。 路径格式为 `https://domain.com/path`
    • PERMISSION

      public static final MenuType PERMISSION
      接口权限 路径格式为 `resource:operation`,operation 通常为 `read`(可省略)、`write` 等。
    • GROUP_PERMISSION

      public static final MenuType GROUP_PERMISSION
      资源权限 路径格式为 `resource:#:operation`,operation 通常为 `read`(可省略)、`write` 等。
  • Method Details

    • values

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