Class NewsUtils

java.lang.Object
org.exoplatform.news.utils.NewsUtils

public class NewsUtils extends Object
  • Field Details

  • Constructor Details

    • NewsUtils

      public NewsUtils()
  • Method Details

    • broadcastEvent

      public static void broadcastEvent(String eventName, Object source, Object data)
    • processMentions

      public static Set<String> processMentions(String content, org.exoplatform.social.core.space.model.Space space)
      Processes Mentioners who has been mentioned via the news body.
      Parameters:
      content - : the content in which update mention
      space - : the space of the news (for group mentioning)
      Returns:
      set of mentioned users
    • getAllowedDraftNewsSpaces

      public static List<org.exoplatform.social.core.space.model.Space> getAllowedDraftNewsSpaces(org.exoplatform.services.security.Identity userIdentity) throws Exception
      Throws:
      Exception
    • getAllowedScheduledNewsSpaces

      public static List<org.exoplatform.social.core.space.model.Space> getAllowedScheduledNewsSpaces(org.exoplatform.services.security.Identity currentIdentity) throws Exception
      Throws:
      Exception
    • canPublishNews

      public static boolean canPublishNews(String spaceId, org.exoplatform.services.security.Identity currentIdentity)
    • canManageNewsPublishTargets

      public static boolean canManageNewsPublishTargets(org.exoplatform.services.security.Identity currentIdentity)
    • getUserIdentity

      public static org.exoplatform.services.security.Identity getUserIdentity(String username)