Class SocialActivityInterpreterLocalServiceUtil

Object
com.liferay.social.kernel.service.SocialActivityInterpreterLocalServiceUtil

public class SocialActivityInterpreterLocalServiceUtil extends Object
Provides the local service utility for SocialActivityInterpreter. This utility wraps com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl and is an 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.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • SocialActivityInterpreterLocalServiceUtil

      public SocialActivityInterpreterLocalServiceUtil()
  • Method Details

    • getActivityInterpreters

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

      public static List<SocialActivityInterpreter> getActivityInterpreters(String selector)
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • 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:
      selector - the context in which the activity interpreter is used
      activity - the activity to be translated to human readable form
      serviceContext - the service context to be applied
      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
      Throws:
      PortalException
    • getService

      public static SocialActivityInterpreterLocalService getService()
    • setService

      public static void setService(SocialActivityInterpreterLocalService service)