Class SocialNotificationUtils

java.lang.Object
org.exoplatform.social.notification.plugin.SocialNotificationUtils

public class SocialNotificationUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.activity.model.ExoSocialActivity>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final String
     
    static final String
     
    static final Pattern
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.identity.model.Profile>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.relationship.model.Relationship>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.space.model.Space>
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
    static final String
     
    static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
    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
     
    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 List<String>
    toListUserIds(String... userIds)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • IMG_SRC_REGEX

      public static final Pattern IMG_SRC_REGEX
    • ACTIVITY_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ACTIVITY_ID
    • COMMENT_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> COMMENT_ID
    • COMMENT_REPLY_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> COMMENT_REPLY_ID
    • PARENT_ACTIVITY_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> PARENT_ACTIVITY_ID
    • POSTER

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> POSTER
    • WATCHED

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> WATCHED
    • LIKER

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> LIKER
    • LIKERS

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> LIKERS
    • SENDER

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> SENDER
    • ACTIVITY

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.activity.model.ExoSocialActivity> ACTIVITY
    • ORIGINAL_TITLE

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ORIGINAL_TITLE
    • ORIGINAL_TITLE_SHARED

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ORIGINAL_TITLE_SHARED
    • PROFILE

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.identity.model.Profile> PROFILE
    • SPACE

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.space.model.Space> SPACE
    • REMOTE_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> REMOTE_ID
    • SPACE_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> SPACE_ID
    • REQUEST_FROM

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> REQUEST_FROM
    • PRETTY_NAME

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> PRETTY_NAME
    • RELATIONSHIP

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.social.core.relationship.model.Relationship> RELATIONSHIP
    • RELATIONSHIP_ID

      public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> RELATIONSHIP_ID
    • EMPTY_STR

      public static final String EMPTY_STR
      See Also:
    • SPACE_STR

      public static final String SPACE_STR
      See Also:
    • DOT_STRING

      public static final String DOT_STRING
      See Also:
    • A_HREF_TAG_REGEX

      public static final String A_HREF_TAG_REGEX
      See Also:
  • Constructor Details

    • SocialNotificationUtils

      public SocialNotificationUtils()
  • Method Details

    • getUserId

      public static String getUserId(String identityId)
    • toListUserIds

      public static List<String> toListUserIds(String... userIds)
    • isSpaceActivity

      public static boolean isSpaceActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
    • addFooterAndFirstName

      public static void addFooterAndFirstName(String remoteId, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
    • processImageTitle

      public static String processImageTitle(String body, String placeholder)
    • getImagePlaceHolder

      public static String getImagePlaceHolder(String language)
    • getBody

      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)
    • addUserToPreviousNotification

      public static org.exoplatform.commons.api.notification.model.NotificationInfo addUserToPreviousNotification(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String propertyName, String activityId, String userId)
    • mergeUsers

      public static List<String> mergeUsers(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String propertyName, String activityId, String userId)