public class SocialMailingUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WRITE_ABOVE_MESSAGE_REPLY |
static String |
WRITE_ABOVE_TO_REPLY |
Constructor and Description |
---|
SocialMailingUtil() |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildHtmlDiscussion(org.gcube.portal.databook.shared.Notification notification2Save,
org.gcube.portal.databook.shared.Feed feed,
List<org.gcube.portal.databook.shared.Comment> comments,
String commentKey)
Build up a discussion given the feed and its comments.
|
protected static String |
buildPlainTextDiscussion(org.gcube.portal.databook.shared.Notification notification2Save,
org.gcube.portal.databook.shared.Feed feed,
List<org.gcube.portal.databook.shared.Comment> comments,
String commentKey)
Build a plain text discussion given a feed and its comments.
|
protected static String |
convertHTML2Text(String html)
Convert html into simple text
|
protected static String |
getHTMLEmail(org.gcube.portal.databook.shared.Notification notification2Save,
String userFirstName,
String portalURL,
String siteLandingPagePath,
String email,
org.gcube.portal.databook.shared.Feed feed,
List<org.gcube.portal.databook.shared.Comment> comments,
String commentKey,
String... hashtags) |
protected static String |
getSubjectByNotificationType(org.gcube.portal.databook.shared.Notification notification2Save,
String vreName,
String userFirstName,
Set<String> mentionedVReGroups,
String... optionalParams)
construct the subjec of the email
|
protected static String |
getTextEmail(org.gcube.portal.databook.shared.Notification notification2Save,
String userFirstName,
String portalURL,
String siteLandingPagePath,
String email,
org.gcube.portal.databook.shared.Feed feed,
List<org.gcube.portal.databook.shared.Comment> comments,
String commentKey,
String[] hashtags) |
public static final String WRITE_ABOVE_MESSAGE_REPLY
public static final String WRITE_ABOVE_TO_REPLY
protected static String getHTMLEmail(org.gcube.portal.databook.shared.Notification notification2Save, String userFirstName, String portalURL, String siteLandingPagePath, String email, org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Comment> comments, String commentKey, String... hashtags)
notification2Save
- userFirstName
- portalURL
- siteLandingPagePath
- email
- vreName
- feed
- comments
- commentKey
- hashtags
- protected static String getTextEmail(org.gcube.portal.databook.shared.Notification notification2Save, String userFirstName, String portalURL, String siteLandingPagePath, String email, org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Comment> comments, String commentKey, String[] hashtags)
notification2Save
- userFirstName
- portalURL
- siteLandingPagePath
- email
- feed
- comments
- commentKey
- hashtags
- protected static String getSubjectByNotificationType(org.gcube.portal.databook.shared.Notification notification2Save, String vreName, String userFirstName, Set<String> mentionedVReGroups, String... optionalParams)
notification2Save
- portalURL
- vreName
- protected static String convertHTML2Text(String html)
protected static String buildHtmlDiscussion(org.gcube.portal.databook.shared.Notification notification2Save, org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Comment> comments, String commentKey)
notification2Save
- feed
- comments
- commentKey
- if not null, when building the discussion stop at this comment.protected static String buildPlainTextDiscussion(org.gcube.portal.databook.shared.Notification notification2Save, org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Comment> comments, String commentKey)
feed
- comments
- commentKey
- if not null, when building the discussion stop at this comment.Copyright © 2017. All Rights Reserved.