Enum Class MenuType
- All Implemented Interfaces:
Serializable
,Comparable<MenuType>
,Constable
菜单类型
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription嵌入页面。外部链接。资源权限 路径格式为 `resource:#:operation`,operation 通常为 `read`(可省略)、`write` 等。接口权限 路径格式为 `resource:operation`,operation 通常为 `read`(可省略)、`write` 等。路由 路径格式为 `/menu/submenu` -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ROUTE
路由 路径格式为 `/menu/submenu` -
EXTERNAL_LINK
外部链接。点击后会打开一个新的标签页 路径格式为 `https://domain.com/path` -
EMBEDDED
嵌入页面。会在当前页面嵌入一个外部网页。 路径格式为 `https://domain.com/path` -
PERMISSION
接口权限 路径格式为 `resource:operation`,operation 通常为 `read`(可省略)、`write` 等。 -
GROUP_PERMISSION
资源权限 路径格式为 `resource:#:operation`,operation 通常为 `read`(可省略)、`write` 等。
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-