Package io.surati.gap.admin.module
Enum AdminDashboardMenu
- java.lang.Object
-
- java.lang.Enum<AdminDashboardMenu>
-
- io.surati.gap.admin.module.AdminDashboardMenu
-
- All Implemented Interfaces:
io.surati.gap.web.base.menu.DashboardMenu
,Serializable
,Comparable<AdminDashboardMenu>
public enum AdminDashboardMenu extends Enum<AdminDashboardMenu> implements io.surati.gap.web.base.menu.DashboardMenu
Admin dashboard menu.- Since:
- 0.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends io.surati.gap.admin.base.api.Access>
accesses()
String
code()
String
link()
int
order()
String
title()
static AdminDashboardMenu
valueOf(String name)
Returns the enum constant of this type with the specified name.static AdminDashboardMenu[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static AdminDashboardMenu[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AdminDashboardMenu c : AdminDashboardMenu.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdminDashboardMenu 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 nameNullPointerException
- if the argument is null
-
order
public int order()
- Specified by:
order
in interfaceio.surati.gap.web.base.menu.DashboardMenu
-
code
public String code()
- Specified by:
code
in interfaceio.surati.gap.web.base.menu.DashboardMenu
-
title
public String title()
- Specified by:
title
in interfaceio.surati.gap.web.base.menu.DashboardMenu
-
link
public String link()
- Specified by:
link
in interfaceio.surati.gap.web.base.menu.DashboardMenu
-
accesses
public Iterable<? extends io.surati.gap.admin.base.api.Access> accesses()
- Specified by:
accesses
in interfaceio.surati.gap.web.base.menu.DashboardMenu
-
-