Package org.rundeck.app.gui
Interface AuthMenuItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rundeck.app.gui.MenuItem
MenuItem.MenuDomain, MenuItem.MenuType
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method 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 booleanisEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth)default booleanisEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth, java.lang.String project)default booleanisEnabledExecution(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth, java.lang.String project, java.lang.String executionId)Check if the menu item is enabled-
Methods inherited from interface org.rundeck.app.gui.MenuItem
getExecutionHref, getHref, getIconCSS, getPriority, getProjectHref, getTitle, getTitleCode, getType, isEnabled, isEnabled, isEnabledExecution
-
-
-
-
Method Detail
-
isEnabled
default boolean isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth)
- Parameters:
auth- auth context- Returns:
- true if enabled, false if disabled
-
isEnabled
default boolean isEnabled(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext auth, java.lang.String project)- Parameters:
auth- auth contextproject- name for project oriented items- Returns:
- true if enabled, false if disabled
-
isEnabledExecution
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- Parameters:
auth- auth contextproject- name for project oriented itemsexecutionId- execution Id for Execution menu items- Returns:
- true if enabled, false if disabled
-
getEnabledCheck
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)
- Parameters:
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- Returns:
- enabled check function given the input values
-
-