public interface ActionManager extends Serializable
Modifier and Type | Method and Description |
---|---|
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.
|
Action |
getAction(String actionId) |
Action |
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.
|
List<Action> |
getActions(String category,
ActionContext context)
Gets actions for a category (filters are evaluated).
|
List<Action> |
getActions(String category,
ActionContext context,
boolean hideUnavailableActions)
Gets actions for a category (filters are evaluated).
|
List<Action> |
getAllActions(String category)
Gets all actions in a category (filters are NOT evaluated).
|
ActionFilter[] |
getFilters(String actionId) |
boolean |
isEnabled(String actionId,
ActionContext context) |
boolean |
isRegistered(String actionId) |
void |
remove()
Cleanup method.
|
boolean isEnabled(String actionId, ActionContext context)
boolean isRegistered(String actionId)
List<Action> getActions(String category, ActionContext context)
Only actions available in the given context are returned
List<Action> getActions(String category, ActionContext context, boolean hideUnavailableActions)
If hideUnavailableActions, all actions of the category are returned but actions are flagged with an available flag depending on filters evaluation.
Action getAction(String actionId, ActionContext context, boolean hideUnavailableActions)
If hideUnavailableActions is false, the action is always returned but it is flagged with an available flag depending on filters evaluation.
ActionFilter[] getFilters(String actionId)
boolean checkFilter(String filterId, ActionContext context)
boolean checkFilters(List<String> filterIds, ActionContext context)
List<Action> getAllActions(String category)
void remove()
Copyright © 2015 Nuxeo SA. All rights reserved.