Class AuthorOperationWithResult

    • Constructor Detail

      • AuthorOperationWithResult

        public AuthorOperationWithResult()
    • Method Detail

      • doOperation

        public abstract java.lang.String doOperation​(AuthorDocumentModel model,
                                                     ArgumentsMap args)
                                              throws java.lang.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:
        java.lang.IllegalArgumentException - Thrown when one or more arguments are illegal.
        AuthorOperationException - Thrown when the operation fails.
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Extension
        Returns:
        the description of this operation.