Liferay 6.0.5

com.liferay.portlet.social.model
Class BaseSocialActivityInterpreter

java.lang.Object
  extended by com.liferay.portlet.social.model.BaseSocialActivityInterpreter
All Implemented Interfaces:
SocialActivityInterpreter
Direct Known Subclasses:
BlogsActivityInterpreter, CalendarActivityInterpreter, DLActivityInterpreter, IGActivityInterpreter, MBActivityInterpreter, PortalActivityInterpreter, TasksActivityInterpreter, WikiActivityInterpreter

public abstract class BaseSocialActivityInterpreter
extends Object
implements SocialActivityInterpreter


Constructor Summary
BaseSocialActivityInterpreter()
           
 
Method Summary
protected  String cleanContent(String content)
           
protected abstract  SocialActivityFeedEntry doInterpret(SocialActivity activity, ThemeDisplay themeDisplay)
           
protected  String getGroupName(long groupId, ThemeDisplay themeDisplay)
           
protected  String getUserName(long userId, ThemeDisplay themeDisplay)
           
 SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
           
protected  String wrapLink(String link, String text)
           
protected  String wrapLink(String link, String key, ThemeDisplay themeDisplay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.social.model.SocialActivityInterpreter
getClassNames
 

Constructor Detail

BaseSocialActivityInterpreter

public BaseSocialActivityInterpreter()
Method Detail

interpret

public SocialActivityFeedEntry interpret(SocialActivity activity,
                                         ThemeDisplay themeDisplay)
Specified by:
interpret in interface SocialActivityInterpreter

cleanContent

protected String cleanContent(String content)

doInterpret

protected abstract SocialActivityFeedEntry doInterpret(SocialActivity activity,
                                                       ThemeDisplay themeDisplay)
                                                throws Exception
Throws:
Exception

getGroupName

protected String getGroupName(long groupId,
                              ThemeDisplay themeDisplay)

getUserName

protected String getUserName(long userId,
                             ThemeDisplay themeDisplay)

wrapLink

protected String wrapLink(String link,
                          String text)

wrapLink

protected String wrapLink(String link,
                          String key,
                          ThemeDisplay themeDisplay)

Liferay 6.0.5