Interface WebappActionsManager

All Superinterfaces:
AuthorExtensionActionProvider

@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface WebappActionsManager extends AuthorExtensionActionProvider
Helper object that provides access to extension actions, and provides support for invoking operations.
Since:
17
  • Method Details

    • invokeOperation

      void invokeOperation(String operationClassName, Map<String,Object> args, int imposedOffset) throws IllegalArgumentException, AuthorOperationException
      Invokes an operation.
      Parameters:
      operationClassName - The name of the class that implements the operation.
      args - The arguments in a representation that mimics JSON: JSON string maps to Java String, and JSON object maps to Java Map.
      imposedOffset - The offset where the action is to be executed. -1 if the action is to be executed for the current selection.
      Throws:
      AuthorOperationException - If the action invocation throws.
      IllegalArgumentException - If the action invocation throws.
    • getExtensionActionsConfiguration

      Map<String,Object> getExtensionActionsConfiguration()
      Returns a representation of the extension actions configuration including the actions list and the toolbar configuration.
      Returns:
      The actions configuration.