Quote converter
A quote converter Gosu object
converts Policy Period entities to and from the XML representation of
a quote in the external quote storage database. The quote converter implements
the gw.quoting.QuoteConverter
interface. This interface provides methods to create, locate, and retrieve
a quote in XML format. PolicyCenter provides a demonstration implementation
of QuoteConverter, gw.quoting.impl.ArchiveXmlQuoteConverter.
Edit this class or use this class as a basis for your own implementation
of the QuoteConverter
interface.
If you extend the policy graph in your PolicyCenter implementation, you must take these extensions into account when you convert a quote between entity and XML formats. In particular, you must create archive upgrade triggers for these extensions to convert the quote from Archive XML format to a quote in the PolicyCenter SOR.
The QuoteConverter interface provides
the following methods:
- convertQuotePeriod – Converts
a policy period (
PolicyPeriod) on the quote-only instance to XML format. This method takes a PolicyPeriod entity instance as a parameter and returns a Gosu object that implements theQuoteRepresentationinterface. - createAccountSearchCriteria – Creates a search criteria object to locate accounts that match the values in the sidecar XML for a quote. This method takes a gw.api.quoting.QuoteAdditionalInfoWrapper object as a parameter and returns an AccountSearchCriteria object. The PolicyCenter user interface displays these accounts so that the user can see whether an account for the quote already exists.
- restoreQuotePeriod – Converts a quote in XML format to a policy period (PolicyPeriod) on the system of record. This method takes a quote representation (QuoteRepresentation) parameter and an optional Account parameter. If the account for the quote already exists, you pass a value for the account parameter. This method returns a PolicyPeriod entity instance.
See also
