Interface ActionManager
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ActionService
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
checkFilter
(String filterId, ActionContext context) Returns false if given filter evaluation is supposed to deny access when checking for this filter.boolean
checkFilters
(List<String> filterIds, ActionContext context) Returns false if given filters evaluation is supposed to deny access when checking for this filter.boolean
checkFilters
(Action action, ActionContext context) getAction
(String actionId, ActionContext context, boolean hideUnavailableActions) Returns action with given id, evaluating its filters in given context, and returning null if filters evaluation denies access or if action is not found.getActions
(String category, ActionContext context) Gets actions for a category (filters are evaluated).getActions
(String category, ActionContext context, boolean hideUnavailableActions) Gets actions for a category (filters are evaluated).getAllActions
(String category) Gets all actions in a category (filters are NOT evaluated).getFilters
(String actionId) boolean
isEnabled
(String actionId, ActionContext context) boolean
isRegistered
(String actionId) void
remove()
Cleanup method.removeAction
(String actionId)
-
Method Details
-
isEnabled
-
isRegistered
-
getActions
Gets actions for a category (filters are evaluated).Only actions available in the given context are returned
-
getActions
Gets actions for a category (filters are evaluated).If hideUnavailableActions, all actions of the category are returned but actions are flagged with an available flag depending on filters evaluation.
-
getAction
-
getAction
Returns action with given id, evaluating its filters in given context, and returning null if filters evaluation denies access or if action is not found.If hideUnavailableActions is false, the action is always returned but it is flagged with an available flag depending on filters evaluation.
- Since:
- 5.6
-
getFilters
-
getFilter
- Since:
- 9.1
- See Also:
-
checkFilter
Returns false if given filter evaluation is supposed to deny access when checking for this filter.- Since:
- 5.6
-
checkFilters
Returns false if given filters evaluation is supposed to deny access when checking for this filter.- Since:
- 7.1
-
checkFilters
- Since:
- 8.2
-
getAllActions
Gets all actions in a category (filters are NOT evaluated). -
addAction
- Since:
- 9.1
- See Also:
-
removeAction
- Since:
- 9.1
- See Also:
-
remove
void remove()Cleanup method.
-