com.liferay.portlet.messageboards.messaging
Class MBMessageListener
java.lang.Object
com.liferay.portlet.messageboards.messaging.MBMessageListener
- All Implemented Interfaces:
- MessageListener
public class MBMessageListener
- extends Object
- implements MessageListener
Method Summary |
protected void |
doReceive(Message message)
|
protected String |
getMailingListSubject(String subject,
String mailId)
|
protected void |
notifyMailingList(String subject,
String body,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat,
long groupId,
long categoryId)
|
void |
receive(Message message)
|
protected void |
sendEmail(long userId,
String fromName,
String fromAddress,
String subject,
String body,
List<Subscription> subscriptions,
Set<Long> sent,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat)
|
protected void |
sendMail(String fromAddress,
String fromName,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat,
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(Message message)
- Specified by:
receive
in interface MessageListener
doReceive
protected void doReceive(Message message)
throws Exception
- Throws:
Exception
getMailingListSubject
protected String getMailingListSubject(String subject,
String mailId)
notifyMailingList
protected void notifyMailingList(String subject,
String body,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat,
long groupId,
long categoryId)
throws Exception
- Throws:
Exception
sendEmail
protected void sendEmail(long userId,
String fromName,
String fromAddress,
String subject,
String body,
List<Subscription> subscriptions,
Set<Long> sent,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat)
throws Exception
- Throws:
Exception
sendMail
protected void sendMail(String fromAddress,
String fromName,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
String replyToAddress,
String mailId,
String inReplyTo,
boolean htmlFormat,
SMTPAccount account)