Class GenerateDocumentHandler

java.lang.Object
com.aquima.interactions.framework.handler.document.GenerateDocumentHandler
All Implemented Interfaces:
IActionHandler

public class GenerateDocumentHandler extends Object implements IActionHandler

This document handler generates a document with the current portal context.

Since 7.0 this action handler also support document generation of pages.

It expects the following parameters:
  • document-name/page-name: name of the document or page to generate.
  • output-format: output format of the document to generate (String or OutputFormat).
  • language-code: code of the language to be used for document generation.
It returns an instance of nl.everest.framework.handler.document.DocumentResult containing the renderer document.
Since:
6.0
Author:
Jon van Leuven
  • Field Details

  • Constructor Details

    • GenerateDocumentHandler

      public GenerateDocumentHandler()
  • Method Details

    • handle

      public IActionResult handle(IActionContext context) throws Exception
      Description copied from interface: IActionHandler
      This method will be called from the portal session to handle an action request from the client. The method returns an Action result object which can be used by the client to act upon this result.
      Specified by:
      handle in interface IActionHandler
      Parameters:
      context - The portal context of the current session.
      Returns:
      The result of the handle method, may be null.
      Throws:
      Exception - When an unexpected exception occurs.
    • generateDocument

      public IActionResult generateDocument(IPortalContext context) throws Exception
      Throws:
      Exception
    • isReadOnly

      public boolean isReadOnly()
      Description copied from interface: IActionHandler
      This method indicates if the action handler does not modify any profile data.
      Specified by:
      isReadOnly in interface IActionHandler
      Returns:
      boolean indicating if the handler does not modify any profile data.