Interface ActionManager

    • Method Detail

      • isRegistered

        boolean isRegistered​(String actionId)
      • getActions

        List<Action> getActions​(String category,
                                ActionContext context)
        Gets actions for a category (filters are evaluated).

        Only actions available in the given context are returned

      • getActions

        List<Action> getActions​(String category,
                                ActionContext context,
                                boolean hideUnavailableActions)
        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

        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.

        If hideUnavailableActions is false, the action is always returned but it is flagged with an available flag depending on filters evaluation.

        Since:
        5.6
      • checkFilter

        boolean checkFilter​(String filterId,
                            ActionContext context)
        Returns false if given filter evaluation is supposed to deny access when checking for this filter.
        Since:
        5.6
      • checkFilters

        boolean checkFilters​(List<String> filterIds,
                             ActionContext context)
        Returns false if given filters evaluation is supposed to deny access when checking for this filter.
        Since:
        7.1
      • getAllActions

        List<Action> getAllActions​(String category)
        Gets all actions in a category (filters are NOT evaluated).
      • remove

        void remove()
        Cleanup method.