Package org.exoplatform.news
Class NewsUtils
- java.lang.Object
-
- org.exoplatform.news.NewsUtils
-
public class NewsUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringPOST_NEWSstatic StringPUBLISH_NEWS
-
Constructor Summary
Constructors Constructor Description NewsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbroadcastEvent(String eventName, Object source, Object data)static List<org.exoplatform.social.core.space.model.Space>getRedactorOrManagerSpaces(String userId)static org.exoplatform.services.security.IdentitygetUserIdentity(String username)static Set<String>processMentions(String body)Processes Mentioners who has been mentioned via the news body.
-
-
-
Field Detail
-
POST_NEWS
public static final String POST_NEWS
- See Also:
- Constant Field Values
-
PUBLISH_NEWS
public static final String PUBLISH_NEWS
- See Also:
- Constant Field Values
-
-
Method Detail
-
processMentions
public static Set<String> processMentions(String body)
Processes Mentioners who has been mentioned via the news body.- Parameters:
body-- Returns:
- set of mentioned users
-
getRedactorOrManagerSpaces
public static List<org.exoplatform.social.core.space.model.Space> getRedactorOrManagerSpaces(String userId) throws Exception
- Throws:
Exception
-
getUserIdentity
public static org.exoplatform.services.security.Identity getUserIdentity(String username)
-
-