public class SocialNotificationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
A_HREF_TAG_REGEX |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
ACTIVITY |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
ACTIVITY_ID |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
COMMENT_ID |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
COMMENT_REPLY_ID |
static String |
DOT_STRING |
static String |
EMPTY_STR |
static Pattern |
IMG_SRC_REGEX |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
LIKER |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
PARENT_ACTIVITY_ID |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
POSTER |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
PRETTY_NAME |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.identity.model.Profile> |
PROFILE |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.relationship.model.Relationship> |
RELATIONSHIP |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
RELATIONSHIP_ID |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
REMOTE_ID |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
REQUEST_FROM |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
SENDER |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.space.model.Space> |
SPACE |
static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> |
SPACE_ID |
static String |
SPACE_STR |
| Constructor and Description |
|---|
SocialNotificationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFooterAndFirstName(String remoteId,
org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext) |
static org.exoplatform.commons.api.notification.model.NotificationInfo |
addUserToPreviousNotification(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
String propertyName,
String activityId,
String userId) |
static String |
buildRedirecActivityUrl(String type,
String id,
String activityTitle) |
static String |
buildRedirecUrl(String type,
String id,
String name) |
static String |
getBody(org.exoplatform.commons.api.notification.NotificationContext ctx,
org.exoplatform.commons.api.notification.service.template.TemplateContext context,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity) |
static String |
getImagePlaceHolder(String language) |
static String |
getMessageByIds(Map<String,List<String>> receiversMap,
Map<String,List<org.apache.commons.lang3.tuple.Pair<String,String>>> activityUserComments,
org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext) |
static String |
getMessageByIds(Map<String,List<String>> receiversMap,
org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext) |
static String |
getMessageByIds(Map<String,List<String>> receiversMap,
org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext,
String type) |
static String |
getMessageInSpace(Map<String,List<String>> receiversMap,
org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext) |
static String |
getUserId(String identityId) |
static boolean |
isSpaceActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) |
static List<String> |
mergeUsers(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
String propertyName,
String activityId,
String userId) |
static String |
processImageTitle(String body,
String placeholder) |
static void |
processInforSendTo(Map<String,List<String>> map,
String key,
String value) |
static void |
processInforUserComments(Map<String,List<org.apache.commons.lang3.tuple.Pair<String,String>>> map,
String key,
org.apache.commons.lang3.tuple.Pair<String,String> value) |
static List<String> |
toListUserIds(String... userIds) |
public static final Pattern IMG_SRC_REGEX
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ACTIVITY_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> COMMENT_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> COMMENT_REPLY_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> PARENT_ACTIVITY_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> POSTER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> LIKER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> SENDER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.activity.model.ExoSocialActivity> ACTIVITY
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.identity.model.Profile> PROFILE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.space.model.Space> SPACE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> REMOTE_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> SPACE_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> REQUEST_FROM
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> PRETTY_NAME
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.relationship.model.Relationship> RELATIONSHIP
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> RELATIONSHIP_ID
public static final String EMPTY_STR
public static final String SPACE_STR
public static final String DOT_STRING
public static final String A_HREF_TAG_REGEX
public static boolean isSpaceActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public static String getMessageInSpace(Map<String,List<String>> receiversMap, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
receiversMap - templateContext - public static String getMessageByIds(Map<String,List<String>> receiversMap, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
public static String getMessageByIds(Map<String,List<String>> receiversMap, Map<String,List<org.apache.commons.lang3.tuple.Pair<String,String>>> activityUserComments, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
receiversMap - activityUserComments - templateContext - public static String getMessageByIds(Map<String,List<String>> receiversMap, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext, String type)
receiversMap - templateContext - type - public static void processInforSendTo(Map<String,List<String>> map, String key, String value)
public static void processInforUserComments(Map<String,List<org.apache.commons.lang3.tuple.Pair<String,String>>> map, String key, org.apache.commons.lang3.tuple.Pair<String,String> value)
public static String buildRedirecActivityUrl(String type, String id, String activityTitle)
public static void addFooterAndFirstName(String remoteId, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
public static String getBody(org.exoplatform.commons.api.notification.NotificationContext ctx, org.exoplatform.commons.api.notification.service.template.TemplateContext context, org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public static org.exoplatform.commons.api.notification.model.NotificationInfo addUserToPreviousNotification(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
String propertyName,
String activityId,
String userId)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.