|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LetterRenderService
Dynamic Document Generation a.k.a Letter Rendering Service that accepts a Letter definition and an initial data XML to render a Letter as a PDF, either interactive or non-interactive.
Field Summary | |
---|---|
static String |
LAYOUT_TEMPLATE_KEY
|
static String |
XML_DATA_KEY
|
Method Summary | |
---|---|
Map |
processLetter(Letter letter,
String initialDataXML,
boolean useTestData)
Process the given Letter object, preparing the augmented layout template and final XML data that can be merged together in the desired render format. |
Map |
processLetter(String letterId,
String initialDataXML,
boolean useTestData)
Process the Letter identified by the given Letter ID, preparing the augmented layout template and final XML data that can be merged together in the desired render format. |
byte[] |
renderLetter(Letter letter,
String dataXML,
boolean renderInteractive)
Render the given Letter object against the given data XML. |
PDFResponseType |
renderLetter(Letter letter,
String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(Letter letter,
String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive,
boolean saveToFile)
Render the CTD against the given data XML. |
byte[] |
renderLetter(String letterId,
String dataXML,
boolean renderInteractive)
Render the given Letter, identified by the letter ID, against the given data XML. |
PDFResponseType |
renderLetter(String letterId,
String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(String letterId,
String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive,
boolean saveToFile)
Render the CTD against the given data XML. |
Field Detail |
---|
static final String LAYOUT_TEMPLATE_KEY
static final String XML_DATA_KEY
Method Detail |
---|
PDFResponseType renderLetter(Letter letter, String initialDataXML, boolean mergeDataOnServer, boolean useTestData, boolean renderInteractive) throws ICCException
letter
- Correspondence Template to be rendered -- must be the *full*
letter object containing all necessary data and assignments.initialDataXML
- XML data to be merged with the Layout templatemergeDataOnServer
- False if we only need to render the Letter, without merging
data with it. If False, the letter is also augmented with
the FormBridge library for use in an interactive filling
environment. True if data needs to be merged (in which case
the FormBridge library is not included). If true, the
PDF bytes are returned; if false, the bytes are not returned
and the PDF is saved to a temporary location that so that it
can be loaded from the client using a URL to the file name
in the PDFResponseType.useTestData
- specify whether to use test data for rendering or notrenderInteractive
- specify whether to render an interactive or flat PDF
PDFResponseType
that contains the PDFFile
object
Exception
ICCException
PDFResponseType renderLetter(String letterId, String initialDataXML, boolean mergeDataOnServer, boolean useTestData, boolean renderInteractive) throws ICCException
letterId
- ID of the Letter/CT to be renderedinitialDataXML
- XML data to be merged with the Layout templatemergeDataOnServer
- False if we only need to render the Letter, without merging
data with it. If False, the letter is also augmented with
the FormBridge library for use in an interactive filling
environment. True if data needs to be merged (in which case
the FormBridge library is not included). If true, the
PDF bytes are returned; if false, the bytes are not returned
and the PDF is saved to a temporary location that so that it
can be loaded from the client using a URL to the file name
in the PDFResponseType.useTestData
- specify whether to use test data for rendering or notrenderInteractive
- specify whether to render an interactive or flat PDF
PDFResponseType
that contains the PDFFile
object
Exception
ICCException
PDFResponseType renderLetter(Letter letter, String initialDataXML, boolean mergeDataOnServer, boolean useTestData, boolean renderInteractive, boolean saveToFile) throws ICCException
letter
- Correspondence Template to be rendered -- must be the *full*
letter object containing all necessary data and assignments.initialDataXML
- XML data to be merged with the Layout templatemergeDataOnServer
- False if we only need to render the Letter, without merging
data with it. If False, the letter is also augmented with
the FormBridge library for use in an interactive filling
environment. True if data needs to be merged (in which case
the FormBridge library is not included).useTestData
- specify whether to use test data for rendering or notrenderInteractive
- specify whether to render an interactive or flat PDFsaveToFile
- true to have the PDF saved to a temporary file for retrieval
via URL from the client; false to have the PDF bytes returned
in the PDFResponseType response.
PDFResponseType
that contains the PDFFile
object
Exception
ICCException
PDFResponseType renderLetter(String letterId, String initialDataXML, boolean mergeDataOnServer, boolean useTestData, boolean renderInteractive, boolean saveToFile) throws ICCException
letterId
- ID of the Letter/CT to be renderedinitialDataXML
- XML data to be merged with the Layout templatemergeDataOnServer
- False if we only need to render the Letter, without merging
data with it. If False, the letter is also augmented with
the FormBridge library for use in an interactive filling
environment. True if data needs to be merged (in which case
the FormBridge library is not included).useTestData
- specify whether to use test data for rendering or notrenderInteractive
- specify whether to render an interactive or flat PDFsaveToFile
- true to have the PDF saved to a temporary file for retrieval
via URL from the client; false to have the PDF bytes returned
in the PDFResponseType response.
PDFResponseType
that contains the PDFFile
object
Exception
ICCException
byte[] renderLetter(String letterId, String dataXML, boolean renderInteractive) throws ICCException
letterId
- ID of the Letter/CT for which the PDF has to be generateddataXML
- XML data to be merged with the Layout templaterenderInteractive
- specify whether to render an interactive or flat PDF
Exception
ICCException
byte[] renderLetter(Letter letter, String dataXML, boolean renderInteractive) throws ICCException
letter
- The Letter object for which the PDF has to be generateddataXML
- XML data to be merged with the Layout templaterenderInteractive
- specify whether to render an interactive or flat PDF
Exception
ICCException
Map processLetter(Letter letter, String initialDataXML, boolean useTestData) throws ICCException
letter
- The Letter object which is to be processed.initialDataXML
- Initial XML data that is used to initialize the associated Data Dictionary (if any), and also augmented and merged with the Letter's layout template.useTestData
- specify whether to use the Letter's test data as initial XML data or not.
Map
that contains the augmented layout template and the final XML data. ICCException
Map processLetter(String letterId, String initialDataXML, boolean useTestData) throws ICCException
letterId
- ID of the Letter which is to be processed.initialDataXML
- Initial XML data that is used to initialize the associated Data Dictionary (if any), and also augmented and merged with the Letter's layout template.useTestData
- specify whether to use the Letter's test data as initial XML data or not.
Map
that contains the augmented layout template and the final XML data. ICCException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |