Liferay 6.2-ce-ga5

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 addNoSuchEntryRedirect(String url, String className, long classPK, ServiceContext serviceContext)
           
protected  String buildLink(String link, String text)
           
protected  String cleanContent(String content)
          Deprecated. As of 6.2.0
protected  SocialActivityFeedEntry doInterpret(SocialActivity activity, ServiceContext serviceContext)
           
protected  SocialActivityFeedEntry doInterpret(SocialActivitySet activitySet, ServiceContext serviceContext)
           
protected  SocialActivityFeedEntry doInterpret(SocialActivity activity, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0
protected  long getActivitySetId(long activityId)
           
protected  String getBody(SocialActivity activity, ServiceContext serviceContext)
           
protected  String getEntryTitle(SocialActivity activity, ServiceContext serviceContext)
           
protected  String getGroupName(long groupId, ServiceContext serviceContext)
           
protected  String getGroupName(long groupId, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, replaced by getGroupName(long, ServiceContext)
protected  String getJSONValue(String json, String key)
           
protected  String getJSONValue(String json, String key, String defaultValue)
           
protected  String getLink(SocialActivity activity, ServiceContext serviceContext)
           
protected  String getPath(SocialActivity activity, ServiceContext serviceContext)
           
 String getSelector()
           
protected  String getTitle(SocialActivity activity, ServiceContext serviceContext)
           
protected  Object[] getTitleArguments(String groupName, SocialActivity activity, String link, String title, ServiceContext serviceContext)
           
protected  String getTitlePattern(String groupName, SocialActivity activity)
           
protected  String getUserName(long userId, ServiceContext serviceContext)
           
protected  String getUserName(long userId, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, replaced by getUserName(long, ServiceContext)
protected  String getValue(String json, String key, String defaultValue)
          Deprecated. As of 6.2.0, replaced by getJSONValue(String, String, String)
protected  PortletURL getViewEntryPortletURL(String className, long classPK, ServiceContext serviceContext)
           
 boolean hasPermission(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext)
           
protected  boolean hasPermissions(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext)
           
 SocialActivityFeedEntry interpret(SocialActivity activity, ServiceContext serviceContext)
           
 SocialActivityFeedEntry interpret(SocialActivitySet activitySet, ServiceContext serviceContext)
           
 void updateActivitySet(long activityId)
           
protected  String wrapLink(String link, String title)
           
protected  String wrapLink(String link, String key, ServiceContext serviceContext)
           
 
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

getSelector

public String getSelector()
Specified by:
getSelector in interface SocialActivityInterpreter

hasPermission

public boolean hasPermission(PermissionChecker permissionChecker,
                             SocialActivity activity,
                             String actionId,
                             ServiceContext serviceContext)
                      throws Exception
Specified by:
hasPermission in interface SocialActivityInterpreter
Throws:
Exception

interpret

public SocialActivityFeedEntry interpret(SocialActivity activity,
                                         ServiceContext serviceContext)
Specified by:
interpret in interface SocialActivityInterpreter

interpret

public SocialActivityFeedEntry interpret(SocialActivitySet activitySet,
                                         ServiceContext serviceContext)
Specified by:
interpret in interface SocialActivityInterpreter

updateActivitySet

public void updateActivitySet(long activityId)
                       throws PortalException,
                              SystemException
Specified by:
updateActivitySet in interface SocialActivityInterpreter
Throws:
PortalException
SystemException

addNoSuchEntryRedirect

protected String addNoSuchEntryRedirect(String url,
                                        String className,
                                        long classPK,
                                        ServiceContext serviceContext)
                                 throws Exception
Throws:
Exception

buildLink

protected String buildLink(String link,
                           String text)

cleanContent

protected String cleanContent(String content)
Deprecated. As of 6.2.0


doInterpret

protected SocialActivityFeedEntry doInterpret(SocialActivity activity,
                                              ServiceContext serviceContext)
                                       throws Exception
Throws:
Exception

doInterpret

protected SocialActivityFeedEntry doInterpret(SocialActivity activity,
                                              ThemeDisplay themeDisplay)
                                       throws Exception
Deprecated. As of 6.2.0

Throws:
Exception

doInterpret

protected SocialActivityFeedEntry doInterpret(SocialActivitySet activitySet,
                                              ServiceContext serviceContext)
                                       throws Exception
Throws:
Exception

getActivitySetId

protected long getActivitySetId(long activityId)

getBody

protected String getBody(SocialActivity activity,
                         ServiceContext serviceContext)
                  throws Exception
Throws:
Exception

getEntryTitle

protected String getEntryTitle(SocialActivity activity,
                               ServiceContext serviceContext)
                        throws Exception
Throws:
Exception

getGroupName

protected String getGroupName(long groupId,
                              ServiceContext serviceContext)

getGroupName

protected String getGroupName(long groupId,
                              ThemeDisplay themeDisplay)
Deprecated. As of 6.2.0, replaced by getGroupName(long, ServiceContext)


getJSONValue

protected String getJSONValue(String json,
                              String key)

getJSONValue

protected String getJSONValue(String json,
                              String key,
                              String defaultValue)

getLink

protected String getLink(SocialActivity activity,
                         ServiceContext serviceContext)
                  throws Exception
Throws:
Exception

getPath

protected String getPath(SocialActivity activity,
                         ServiceContext serviceContext)
                  throws Exception
Throws:
Exception

getTitle

protected String getTitle(SocialActivity activity,
                          ServiceContext serviceContext)
                   throws Exception
Throws:
Exception

getTitleArguments

protected Object[] getTitleArguments(String groupName,
                                     SocialActivity activity,
                                     String link,
                                     String title,
                                     ServiceContext serviceContext)
                              throws Exception
Throws:
Exception

getTitlePattern

protected String getTitlePattern(String groupName,
                                 SocialActivity activity)
                          throws Exception
Throws:
Exception

getUserName

protected String getUserName(long userId,
                             ServiceContext serviceContext)

getUserName

protected String getUserName(long userId,
                             ThemeDisplay themeDisplay)
Deprecated. As of 6.2.0, replaced by getUserName(long, ServiceContext)


getValue

protected String getValue(String json,
                          String key,
                          String defaultValue)
Deprecated. As of 6.2.0, replaced by getJSONValue(String, String, String)


getViewEntryPortletURL

protected PortletURL getViewEntryPortletURL(String className,
                                            long classPK,
                                            ServiceContext serviceContext)
                                     throws Exception
Throws:
Exception

hasPermissions

protected boolean hasPermissions(PermissionChecker permissionChecker,
                                 SocialActivity activity,
                                 String actionId,
                                 ServiceContext serviceContext)
                          throws Exception
Throws:
Exception

wrapLink

protected String wrapLink(String link,
                          String title)

wrapLink

protected String wrapLink(String link,
                          String key,
                          ServiceContext serviceContext)

Liferay 6.2-ce-ga5