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 Summary
Modifier and TypeMethodDescriptionReturns a representation of the extension actions configuration including the actions list and the toolbar configuration.void
invokeOperation
(String operationClassName, Map<String, Object> args, int imposedOffset) Invokes an operation.Methods inherited from interface ro.sync.ecss.extensions.api.AuthorExtensionActionProvider
getExtensionAction, getExtensionAction
-
Method Details
-
invokeOperation
void invokeOperation(String operationClassName, Map<String, Object> args, int imposedOffset) throws IllegalArgumentException, AuthorOperationExceptionInvokes 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
Returns a representation of the extension actions configuration including the actions list and the toolbar configuration.- Returns:
- The actions configuration.
-