Package com.jalios.jcms.mail
Class MailPolicyManager
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyManager<MailPolicyFilter>
-
- com.jalios.jcms.mail.MailPolicyManager
-
public class MailPolicyManager extends AbstractPolicyManager<MailPolicyFilter>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
boolean
beforeSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
boolean
fetchMessage(MailMessage msg, boolean stored, java.util.Map<java.lang.String,java.lang.Object> context)
static MailPolicyManager
getInstance()
protected java.lang.String
getStatusXmlTagName()
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyManager
addPolicyFilter, getPolicyFilters, getPolicyFiltersMap, handleException, removePolicyFilter, replacePolicyFilter
-
-
-
-
Method Detail
-
getInstance
public static final MailPolicyManager getInstance()
-
getStatusXmlTagName
protected java.lang.String getStatusXmlTagName()
- Specified by:
getStatusXmlTagName
in classAbstractPolicyManager<MailPolicyFilter>
-
beforeSendMail
public boolean beforeSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
- Parameters:
msg
- the MailMessage instance that will be sentctxt
- a context used to store information for this mail sending (context is used accross beforeSendMail and afterSensMail)- Returns:
- true if the processing should continue, false otherwise
- See Also:
MailPolicyFilter.beforeSendMail(com.jalios.jcms.mail.MailMessage, java.util.HashMap)
-
afterSendMail
public void afterSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
- Parameters:
msg
- the MailMessage instance that was sentctxt
- a context used to store information for this mail sending (context is used accross beforeSendMail and afterSensMail)- See Also:
MailPolicyFilter.afterSendMail(com.jalios.jcms.mail.MailMessage, java.util.HashMap)
-
fetchMessage
public boolean fetchMessage(MailMessage msg, boolean stored, java.util.Map<java.lang.String,java.lang.Object> context)
- Parameters:
msg
- the javax.mail.Message fetchedstored
- boolean to store MailMessage in JCMScontext
- a context used to store information- Returns:
- boolean stored
- See Also:
MailListener.fetchMessage(MailMessage, boolean, Map)
-
-