Liferay 6.2-ce-ga5

com.liferay.portlet.social.service
Class SocialActivityInterpreterLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.social.service.SocialActivityInterpreterLocalServiceUtil

@ProviderType
public class SocialActivityInterpreterLocalServiceUtil
extends Object

Provides the local service utility for SocialActivityInterpreter. This utility wraps com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
SocialActivityInterpreterLocalService, com.liferay.portlet.social.service.base.SocialActivityInterpreterLocalServiceBaseImpl, com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl

Constructor Summary
SocialActivityInterpreterLocalServiceUtil()
           
 
Method Summary
static void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
          Adds the activity interpreter to the list of available interpreters.
static void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
          Removes the activity interpreter from the list of available interpreters.
static Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
           
static List<SocialActivityInterpreter> getActivityInterpreters(String selector)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static SocialActivityInterpreterLocalService getService()
           
static SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, replaced by interpret(String, SocialActivity, ServiceContext)
static SocialActivityFeedEntry interpret(String selector, SocialActivity activity, ServiceContext serviceContext)
          Creates a human readable activity feed entry for the activity using an available compatible activity interpreter.
static SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(SocialActivityInterpreterLocalService service)
          Deprecated. As of 6.2.0
static void updateActivitySet(long activityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityInterpreterLocalServiceUtil

public SocialActivityInterpreterLocalServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addActivityInterpreter

public static void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Adds the activity interpreter to the list of available interpreters.

Parameters:
activityInterpreter - the activity interpreter

deleteActivityInterpreter

public static void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Removes the activity interpreter from the list of available interpreters.

Parameters:
activityInterpreter - the activity interpreter

getActivityInterpreters

public static Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()

getActivityInterpreters

public static List<SocialActivityInterpreter> getActivityInterpreters(String selector)

interpret

public static SocialActivityFeedEntry interpret(SocialActivity activity,
                                                ThemeDisplay themeDisplay)
Deprecated. As of 6.2.0, replaced by interpret(String, SocialActivity, ServiceContext)


interpret

public static SocialActivityFeedEntry interpret(String selector,
                                                SocialActivity activity,
                                                ServiceContext serviceContext)
Creates a human readable activity feed entry for the activity using an available compatible activity interpreter.

This method finds the appropriate interpreter for the activity by going through the available interpreters and asking them if they can handle the asset type of the activity.

Parameters:
activity - the activity to be translated to human readable form
Returns:
the activity feed that is a human readable form of the activity record or null if a compatible interpreter is not found

interpret

public static SocialActivityFeedEntry interpret(String selector,
                                                SocialActivitySet activitySet,
                                                ServiceContext serviceContext)

updateActivitySet

public static void updateActivitySet(long activityId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getService

public static SocialActivityInterpreterLocalService getService()

setService

public void setService(SocialActivityInterpreterLocalService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5