|
|||||||||
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 java.lang.String |
LAYOUT_TEMPLATE_KEY
Return value of processLetter API contains processed template against this key. |
static java.lang.String |
XML_DATA_KEY
Return value of processLetter API contains processed data xml against this key. |
Method Summary | |
---|---|
java.lang.String |
getExtendedLayoutPath(java.lang.String letterId,
java.lang.String initialDataXML,
boolean useTestData)
Extends the layout with the following, and returns the repository path to the prepared layout (XDP):
1. |
java.util.Map |
processLetter(Letter letter,
java.lang.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. |
java.util.Map |
processLetter(Letter letter,
java.lang.String initialDataXML,
LetterRenderOptionsSpec letterRenderOptionsSpec)
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. |
java.util.Map |
processLetter(java.lang.String letterId,
java.lang.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. |
java.util.Map |
processLetter(java.lang.String letterId,
java.lang.String initialDataXML,
LetterRenderOptionsSpec letterRenderOptionsSpec)
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,
java.lang.String dataXML,
boolean renderInteractive)
Render the given Letter object against the given data XML. |
PDFResponseType |
renderLetter(Letter letter,
java.lang.String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(Letter letter,
java.lang.String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive,
boolean saveToFile)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(Letter letter,
java.lang.String initialDataXML,
LetterRenderOptionsSpec letterRenderOptionsSpec)
Render the CTD against the given data XML. |
byte[] |
renderLetter(java.lang.String letterId,
java.lang.String dataXML,
boolean renderInteractive)
Render the given Letter, identified by the letter ID, against the given data XML. |
PDFResponseType |
renderLetter(java.lang.String letterId,
java.lang.String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(java.lang.String letterId,
java.lang.String initialDataXML,
boolean mergeDataOnServer,
boolean useTestData,
boolean renderInteractive,
boolean saveToFile)
Render the CTD against the given data XML. |
PDFResponseType |
renderLetter(java.lang.String letterId,
java.lang.String initialDataXML,
LetterRenderOptionsSpec letterRenderOptionsSpec)
Render the CTD against the given data XML. |
java.lang.String |
serializeDataElementsToXML(java.lang.String ddiAsXml,
java.util.Map phValues,
java.util.Map fieldValues)
Serialize data elements into XML by appending Fields/Variables elements to the input xml. |
Field Detail |
---|
static final java.lang.String LAYOUT_TEMPLATE_KEY
static final java.lang.String XML_DATA_KEY
Method Detail |
---|
PDFResponseType renderLetter(java.lang.String letterId, java.lang.String initialDataXML, LetterRenderOptionsSpec letterRenderOptionsSpec) throws ICCException
letterId
- ID of the Letter/CT to be rendered.initialDataXML
- XML data to be merged with the Layout template.letterRenderOptionsSpec
- specifies options to render letter.
PDFResponseType
that contains the PDFFile
object
java.lang.Exception
ICCException
PDFResponseType renderLetter(Letter letter, java.lang.String initialDataXML, LetterRenderOptionsSpec letterRenderOptionsSpec) 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 template.letterRenderOptionsSpec
- specifies options to render letter.
PDFResponseType
that contains the PDFFile
object
java.lang.Exception
ICCException
PDFResponseType renderLetter(Letter letter, java.lang.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
java.lang.Exception
ICCException
PDFResponseType renderLetter(java.lang.String letterId, java.lang.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
java.lang.Exception
ICCException
PDFResponseType renderLetter(Letter letter, java.lang.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
java.lang.Exception
ICCException
PDFResponseType renderLetter(java.lang.String letterId, java.lang.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
java.lang.Exception
ICCException
byte[] renderLetter(java.lang.String letterId, java.lang.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
java.lang.Exception
ICCException
byte[] renderLetter(Letter letter, java.lang.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
java.lang.Exception
ICCException
java.lang.String serializeDataElementsToXML(java.lang.String ddiAsXml, java.util.Map phValues, java.util.Map fieldValues) throws ICCException
ddiAsXml
- Serialize XML input data for DDI to be usedphValues
- is map having PH values with key as place holder variable namefieldValues
- is map having Field values with key as somExpr of the Field
ICCException
java.util.Map processLetter(Letter letter, java.lang.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
java.util.Map processLetter(java.lang.String letterId, java.lang.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
java.util.Map processLetter(java.lang.String letterId, java.lang.String initialDataXML, LetterRenderOptionsSpec letterRenderOptionsSpec) 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.letterRenderOptionsSpec
- specifies options to process letter.
Map
that contains the augmented layout template and the final XML data. ICCException
java.util.Map processLetter(Letter letter, java.lang.String initialDataXML, LetterRenderOptionsSpec letterRenderOptionsSpec) 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.letterRenderOptionsSpec
- specifies options to process letter.
Map
that contains the augmented layout template and the final XML data. ICCException
java.lang.String getExtendedLayoutPath(java.lang.String letterId, java.lang.String initialDataXML, boolean useTestData) throws ICCException
layout
with the following, and returns the repository path to the prepared layout (XDP):
letterId
- ID of the Letter whose extended layout is to be fetched.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
- True if the Letter's test data is to be used, rather than an external XML data.
ICCException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |