Class AuthorOperationWithResult
java.lang.Object
ro.sync.ecss.extensions.api.webapp.AuthorOperationWithResult
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
TableMoveOrCopyColumnOperation
,TableMoveOrCopyRowsOperation
@API(type=EXTENDABLE,
src=PUBLIC)
public abstract class AuthorOperationWithResult
extends Object
implements Extension
Operation that returns a result when invoked from the Web Author JS API.
- Since:
- 18.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
doOperation
(AuthorDocumentModel model, ArgumentsMap args) Performs the actual operation and return a result to be sent to the client-side code.
-
Constructor Details
-
AuthorOperationWithResult
public AuthorOperationWithResult()
-
-
Method Details
-
doOperation
public abstract String doOperation(AuthorDocumentModel model, ArgumentsMap args) throws IllegalArgumentException, AuthorOperationException Performs the actual operation and return a result to be sent to the client-side code.- Parameters:
model
- The web author document model.args
- The map of arguments. The argument names are the names passed by the calling JS code.- Returns:
- The result of the operation that will be passed to the client-side code.
- Throws:
IllegalArgumentException
- Thrown when one or more arguments are illegal.AuthorOperationException
- Thrown when the operation fails.
-
getDescription
- Specified by:
getDescription
in interfaceExtension
- Returns:
- the description of this operation.
-