public class EmailPlugin extends Object
Modifier and Type | Field and Description |
---|---|
protected static ArrayList<NotificationMail> |
BUFFER_EMAILS |
protected static int |
SECONDS2WAIT |
static String |
WRITE_ABOVE_MESSAGE_REPLY |
static String |
WRITE_ABOVE_TO_REPLY |
Modifier and Type | Method and Description |
---|---|
protected static String |
convertHTML2Text(String html)
Convert html into simple text
|
static EmailPlugin |
getInstance() |
protected static javax.mail.Message |
getMessageNotification(javax.mail.Session session,
org.gcube.portal.databook.shared.Notification notification2Save,
String vreName,
String portalName,
String senderEmail,
String... hashtags) |
void |
sendNotification(org.gcube.portal.databook.shared.Notification notification2Save,
String vreName,
String portalName,
String senderEmail,
String... hashtags)
enqueue the message to send
|
protected static final int SECONDS2WAIT
public static final String WRITE_ABOVE_MESSAGE_REPLY
public static final String WRITE_ABOVE_TO_REPLY
protected static ArrayList<NotificationMail> BUFFER_EMAILS
public static EmailPlugin getInstance()
protected static String convertHTML2Text(String html)
public void sendNotification(org.gcube.portal.databook.shared.Notification notification2Save, String vreName, String portalName, String senderEmail, String... hashtags)
notification2Save
- vreName
- portalName
- senderEmail
- Copyright © 2016. All Rights Reserved.