|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.mail.MgnlMailFactory
public class MgnlMailFactory
This reads the repository to know what kind of email to instantiate.
Constructor Summary | |
---|---|
MgnlMailFactory()
Use getInstance to get the current used instance. |
Method Summary | |
---|---|
MgnlEmail |
getEmail(java.util.Map<java.lang.String,java.lang.Object> params)
Creates email with no attachments. |
MgnlEmail |
getEmail(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<MailAttachment> attachments)
Creates email with attachments. |
protected MgnlEmail |
getEmail(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<MailAttachment> attachments,
MailTemplate template)
|
MgnlEmail |
getEmailFromTemplate(java.lang.String id,
java.util.List<MailAttachment> attachments,
java.util.Map<java.lang.String,java.lang.Object> params)
Creates email using predefined template. |
MgnlEmail |
getEmailFromTemplate(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params)
Creates email using predefined template with no attachments. |
protected MgnlEmail |
getEmailFromType(MailTemplate template)
|
MgnlEmail |
getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String type)
Creates email with no attachments. |
MgnlEmail |
getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String type,
java.util.List<MailAttachment> attachments)
Creates email with attachments. |
MgnlEmail |
getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String type,
java.lang.String contentType,
java.util.List<MailAttachment> attachments)
|
MgnlMailHandler |
getEmailHandler()
|
java.util.Map<java.lang.String,java.lang.String> |
getRenderers()
|
protected MailTemplate |
getTemplate(java.lang.String templateName)
|
void |
setRenderers(java.util.Map<java.lang.String,java.lang.String> renderers)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MgnlMailFactory()
Method Detail |
---|
public MgnlMailHandler getEmailHandler()
public MgnlEmail getEmail(java.util.Map<java.lang.String,java.lang.Object> params)
public MgnlEmail getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String type)
public MgnlEmail getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String type, java.lang.String contentType, java.util.List<MailAttachment> attachments)
public MgnlEmail getEmailFromType(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String type, java.util.List<MailAttachment> attachments)
public MgnlEmail getEmail(java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<MailAttachment> attachments)
public MgnlEmail getEmailFromTemplate(java.lang.String id, java.util.List<MailAttachment> attachments, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
public MgnlEmail getEmailFromTemplate(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
protected MgnlEmail getEmail(java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<MailAttachment> attachments, MailTemplate template)
protected MgnlEmail getEmailFromType(MailTemplate template) throws java.lang.Exception
java.lang.Exception
protected MailTemplate getTemplate(java.lang.String templateName) throws java.lang.Exception
java.lang.Exception
public java.util.Map<java.lang.String,java.lang.String> getRenderers()
public void setRenderers(java.util.Map<java.lang.String,java.lang.String> renderers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |