IEmailTemplateSource plugin
The IEmailTemplateSource plugin template enables PolicyCenter to retrieve one or more email templates. To see the plugin registry, navigate in the following location in the Studio Project window:
In the base configuration, Guidewire provides the following demonstration plugin implementation, registered in IEmailTemplateSource.gwp:
- gw.plugin.email.impl.LocalEmailTemplateSource
The LocalEmailTemplateSource class constructs an email template from files located in the Studio resources folder:
Method getEmailTemplates on the implementation class searches for an email template.
getEmailTemplates(locale : ILocale, valuesToMatch : Map) : IEmailTemplateDescriptor[]
This method accepts the following arguments.
|
Parameter |
Description |
|---|---|
|
locale |
Locale to search for. The argument can be If locale is not
|
|
valuesToMatch |
Keys to match include |
The method returns an array of zero or more IEmailTemplateDescriptor objects that match the locale and specified values to match. If no matches are found, the returned array is empty.
