public class SocialActivityInterpreterLocalServiceUtil
extends Object
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.SocialActivityInterpreterLocalService
Constructor and Description |
---|
SocialActivityInterpreterLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,List<SocialActivityInterpreter>> |
getActivityInterpreters() |
static List<SocialActivityInterpreter> |
getActivityInterpreters(String selector) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static SocialActivityInterpreterLocalService |
getService() |
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 |
updateActivitySet(long activityId) |
public SocialActivityInterpreterLocalServiceUtil()
public static Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
public static List<SocialActivityInterpreter> getActivityInterpreters(String selector)
public static String getOSGiServiceIdentifier()
public static SocialActivityFeedEntry interpret(String selector, SocialActivity activity, ServiceContext serviceContext)
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.
selector
- the context in which the activity interpreter is usedactivity
- the activity to be translated to human readable formserviceContext
- the service context to be appliednull
if a compatible interpreter is not
foundpublic static SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
public static void updateActivitySet(long activityId) throws PortalException
PortalException
public static SocialActivityInterpreterLocalService getService()