Class ForumActivityBuilder

java.lang.Object
org.exoplatform.forum.ext.activity.ForumActivityBuilder

public class ForumActivityBuilder extends Object
Created by The eXo Platform SAS Author : thanh_vucong thanh_vucong@exoplatform.com Jan 10, 2013
  • Field Details

  • Method Details

    • createActivityComment

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity createActivityComment(org.exoplatform.forum.service.Post post, ForumActivityContext ctx)
    • updateActivityComment

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateActivityComment(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.forum.service.Post post, ForumActivityContext ctx)
    • createActivityComment

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity createActivityComment(org.exoplatform.forum.service.Topic topic, ForumActivityContext ctx)
    • decodeHTMLInput

      public static String decodeHTMLInput(String message)
    • processContent

      public static String processContent(String content, int nbOfLines)
      No more than nbOfLines lines No more than 430 characters If the content is larger than these limits, we add "..." at the end of the abstract.
      Parameters:
      content -
      nbOfLines -
      Returns:
    • trunc

      public static final String trunc(String str, int head, boolean needTail)
      Truncates large Strings showing a portion of the String's head and tail with the head cut out and replaced with '...'.
      Parameters:
      str - the string to truncate
      head - the amount of the head to display
      Returns:
      the head truncated string
    • createActivity

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity createActivity(org.exoplatform.forum.service.Topic topic, ForumActivityContext ctx)
    • updateNumberOfReplies

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateNumberOfReplies(org.exoplatform.forum.service.Topic topic, org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
    • updateNumberOfReplies

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateNumberOfReplies(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, boolean isDelete)
    • updateVoteRate

      public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateVoteRate(org.exoplatform.forum.service.Topic topic, org.exoplatform.social.core.activity.model.ExoSocialActivity activity)