com.liferay.portlet.messageboards.messaging
Class MBMessageListener
java.lang.Object
com.liferay.portlet.messageboards.messaging.MBMessageListener
- All Implemented Interfaces:
- com.liferay.portal.kernel.messaging.MessageListener
public class MBMessageListener
- extends java.lang.Object
- implements com.liferay.portal.kernel.messaging.MessageListener
View Source
- Author:
- Brian Wing Shun Chan, Thiago Moreira
Method Summary |
void |
doReceive(com.liferay.portal.kernel.messaging.Message message)
|
protected java.lang.String |
getMailingListSubject(java.lang.String subject,
java.lang.String mailId)
|
protected void |
notifyMailingList(java.lang.String subject,
java.lang.String body,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat,
long categoryId)
|
void |
receive(com.liferay.portal.kernel.messaging.Message message)
|
protected void |
sendEmail(long userId,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.model.Subscription> subscriptions,
java.util.Set<java.lang.Long> sent,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat)
|
protected void |
sendMail(java.lang.String fromAddress,
java.lang.String fromName,
javax.mail.internet.InternetAddress[] bulkAddresses,
java.lang.String subject,
java.lang.String body,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat,
com.liferay.portal.kernel.mail.SMTPAccount account)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageListener
public MBMessageListener()
receive
public void receive(com.liferay.portal.kernel.messaging.Message message)
- Specified by:
receive
in interface com.liferay.portal.kernel.messaging.MessageListener
doReceive
public void doReceive(com.liferay.portal.kernel.messaging.Message message)
throws java.lang.Exception
- Throws:
java.lang.Exception
getMailingListSubject
protected java.lang.String getMailingListSubject(java.lang.String subject,
java.lang.String mailId)
notifyMailingList
protected void notifyMailingList(java.lang.String subject,
java.lang.String body,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat,
long categoryId)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendEmail
protected void sendEmail(long userId,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.model.Subscription> subscriptions,
java.util.Set<java.lang.Long> sent,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendMail
protected void sendMail(java.lang.String fromAddress,
java.lang.String fromName,
javax.mail.internet.InternetAddress[] bulkAddresses,
java.lang.String subject,
java.lang.String body,
java.lang.String replyToAddress,
java.lang.String mailId,
java.lang.String inReplyTo,
boolean htmlFormat,
com.liferay.portal.kernel.mail.SMTPAccount account)