MenuItem.MenuDomain, MenuItem.MenuType
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<MenuItem,java.lang.Boolean> |
getEnabledCheck(MenuItem.MenuType menuType,
com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext,
java.lang.String project,
java.lang.String executionId) |
default boolean |
isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth) |
default boolean |
isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth,
java.lang.String project) |
default boolean |
isEnabledExecution(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth,
java.lang.String project,
java.lang.String executionId)
Check if the menu item is enabled
|
getEnabledCheck, getExecutionHref, getHref, getIconCSS, getPriority, getProjectHref, getTitle, getTitleCode, getType, isEnabled, isEnabled, isEnabledExecution
default boolean isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth)
auth
- auth contextdefault boolean isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth, java.lang.String project)
auth
- auth contextproject
- name for project oriented itemsdefault boolean isEnabledExecution(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth, java.lang.String project, java.lang.String executionId)
auth
- auth contextproject
- name for project oriented itemsexecutionId
- execution Id for Execution menu itemsstatic java.util.function.Function<MenuItem,java.lang.Boolean> getEnabledCheck(MenuItem.MenuType menuType, com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext, java.lang.String project, java.lang.String executionId)
menuType
- menu types to checkauthContext
- available auth context, if AuthMenuItems should be checkedproject
- project name, if available and project type should be checkedexecutionId
- execution ID string, if available and execution type should be checked