Class GenerateDocumentHandler
java.lang.Object
com.aquima.interactions.framework.handler.document.GenerateDocumentHandler
- All Implemented Interfaces:
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.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateDocument
(IPortalContext context) handle
(IActionContext context) This method will be called from the portal session to handle an action request from the client.boolean
This method indicates if the action handler does not modify any profile data.
-
Field Details
-
NAME
This field defines the default name of the handler.- See Also:
-
ATTRIBUTE_DOCUMENT_NAME
- See Also:
-
ATTRIBUTE_PAGE_NAME
- See Also:
-
ATTRIBUTE_OUTPUT_FORMAT
- See Also:
-
ATTRIBUTE_LANGUAGE_CODE
- See Also:
-
-
Constructor Details
-
GenerateDocumentHandler
public GenerateDocumentHandler()
-
-
Method Details
-
handle
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 interfaceIActionHandler
- Parameters:
context
- The portal context of the current session.- Returns:
- The result of the handle method, may be null.
- Throws:
PortalException
- This exception may be thrown by the implementation to indicate a failure.Exception
- When an unexpected exception occurs.
-
generateDocument
- Throws:
PortalException
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 interfaceIActionHandler
- Returns:
- boolean indicating if the handler does not modify any profile data.
-