Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.model
Class BaseSocialActivityInterpreter

java.lang.Object
  extended by com.liferay.portlet.social.model.BaseSocialActivityInterpreter
All Implemented Interfaces:
SocialActivityInterpreter

public abstract class BaseSocialActivityInterpreter
extends Object
implements SocialActivityInterpreter


Constructor Summary
BaseSocialActivityInterpreter()
           
 
Method Summary
protected  String cleanContent(String content)
          Deprecated.  
protected abstract  SocialActivityFeedEntry doInterpret(SocialActivity activity, ThemeDisplay themeDisplay)
           
protected  String getGroupName(long groupId, ThemeDisplay themeDisplay)
           
protected  String getUserName(long userId, ThemeDisplay themeDisplay)
           
protected  String getValue(String extraData, String key, String defaultValue)
           
 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)
Deprecated. 


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)

getValue

protected String getValue(String extraData,
                          String key,
                          String defaultValue)

wrapLink

protected String wrapLink(String link,
                          String text)

wrapLink

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

Liferay 6.1.2-ce-ga3