Package org.faceless.publisher.ext
Interface MailExtension.Configuration
- Enclosing class:
- MailExtension
public static interface MailExtension.Configuration
A Configuration controls how an arbitrary mail message is converted to input that can be
used by BFO Publisher. A number of standard configurations are available, or a custom
one can be created that optionally extends an existing configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(MailExtension.Message message, Report report) Apply the suppliedMailExtension.MyMessage
to theReport
.void
augmentJson
(Json json, org.faceless.publisher.ext.MailExtension.Part part) Modify the Json returned fromMailExtension.Part.toJson(org.faceless.publisher.ext.MailExtension.Configuration)
getNames()
Return the list of names that this Configuration is known byReturn a list of properties to include in the message
-
Method Details
-
getNames
Return the list of names that this Configuration is known by -
apply
Apply the suppliedMailExtension.MyMessage
to theReport
. By default this method creates metadata by calling the#getMetadata
method, optionally wrapps the HTML by calling#wrapXHTML
, adds the parts returned byMyMessage#getParts
to theResourceLoader
used by theReport
, then loads the main part for conversion- Parameters:
message
- theMailExtension.MyMessage
to read as inputreport
- theReport
to write to as output.- Throws:
IOException
-
getProperties
Return a list of properties to include in the message -
augmentJson
void augmentJson(Json json, org.faceless.publisher.ext.MailExtension.Part part) Modify the Json returned fromMailExtension.Part.toJson(org.faceless.publisher.ext.MailExtension.Configuration)
- Parameters:
json
- the output ofMailExtension.Part.toJson(org.faceless.publisher.ext.MailExtension.Configuration)
part
- the part object
-