Class SocialActivityInterpreterLocalServiceWrapper
Object
com.liferay.social.kernel.service.SocialActivityInterpreterLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,ServiceWrapper<SocialActivityInterpreterLocalService>
,SocialActivityInterpreterLocalService
public class SocialActivityInterpreterLocalServiceWrapper
extends Object
implements ServiceWrapper<SocialActivityInterpreterLocalService>, SocialActivityInterpreterLocalService
Provides a wrapper for
SocialActivityInterpreterLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionSocialActivityInterpreterLocalServiceWrapper
(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) -
Method Summary
Modifier and TypeMethodDescriptiongetActivityInterpreters
(String selector) Returns the OSGi service identifier.interpret
(String selector, SocialActivity activity, ServiceContext serviceContext) Creates a human readable activity feed entry for the activity using an available compatible activity interpreter.interpret
(String selector, SocialActivitySet activitySet, ServiceContext serviceContext) void
setWrappedService
(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) void
updateActivitySet
(long activityId)
-
Constructor Details
-
SocialActivityInterpreterLocalServiceWrapper
public SocialActivityInterpreterLocalServiceWrapper() -
SocialActivityInterpreterLocalServiceWrapper
public SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
-
-
Method Details
-
getActivityInterpreters
- Specified by:
getActivityInterpreters
in interfaceSocialActivityInterpreterLocalService
-
getActivityInterpreters
- Specified by:
getActivityInterpreters
in interfaceSocialActivityInterpreterLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceSocialActivityInterpreterLocalService
- Returns:
- the OSGi service identifier
-
interpret
public 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.
- Specified by:
interpret
in interfaceSocialActivityInterpreterLocalService
- Parameters:
selector
- the context in which the activity interpreter is usedactivity
- the activity to be translated to human readable formserviceContext
- 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 SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext) - Specified by:
interpret
in interfaceSocialActivityInterpreterLocalService
-
updateActivitySet
- Specified by:
updateActivitySet
in interfaceSocialActivityInterpreterLocalService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<SocialActivityInterpreterLocalService>
-
setWrappedService
public void setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) - Specified by:
setWrappedService
in interfaceServiceWrapper<SocialActivityInterpreterLocalService>
-