public interface MenuItem
Modifier and Type | Interface and Description |
---|---|
static class |
MenuItem.MenuDomain |
static class |
MenuItem.MenuType |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<MenuItem,java.lang.Boolean> |
getEnabledCheck(MenuItem.MenuType menuType,
java.lang.String project,
java.lang.String executionId) |
default java.lang.String |
getExecutionHref(java.lang.String project,
java.lang.String executionId) |
default java.lang.String |
getHref()
Location HREF
|
default java.lang.String |
getIconCSS() |
default java.lang.Integer |
getPriority()
Sort key
|
default java.lang.String |
getProjectHref(java.lang.String project) |
java.lang.String |
getTitle()
Default title string
|
java.lang.String |
getTitleCode()
i18n message code for title
|
MenuItem.MenuType |
getType()
Location of menu item
|
default boolean |
isEnabled() |
default boolean |
isEnabled(java.lang.String project) |
default boolean |
isEnabledExecution(java.lang.String project,
java.lang.String executionId) |
MenuItem.MenuType getType()
default java.lang.Integer getPriority()
java.lang.String getTitleCode()
java.lang.String getTitle()
default java.lang.String getHref()
default java.lang.String getProjectHref(java.lang.String project)
project
- default java.lang.String getExecutionHref(java.lang.String project, java.lang.String executionId)
default java.lang.String getIconCSS()
default boolean isEnabled()
default boolean isEnabled(java.lang.String project)
project
- name for project oriented itemsdefault boolean isEnabledExecution(java.lang.String project, java.lang.String executionId)
project
- name for project oriented itemsexecutionId
- execution Id for Execution menu itemsstatic java.util.function.Function<MenuItem,java.lang.Boolean> getEnabledCheck(MenuItem.MenuType menuType, java.lang.String project, java.lang.String executionId)
menuType
- menu types to checkproject
- project name, if available and project type should be checkedexecutionId
- execution ID string, if available and execution type should be checked