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) voidsetWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) voidupdateActivitySet(long activityId)
-
Constructor Details
-
SocialActivityInterpreterLocalServiceWrapper
public SocialActivityInterpreterLocalServiceWrapper() -
SocialActivityInterpreterLocalServiceWrapper
public SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
-
-
Method Details
-
getActivityInterpreters
- Specified by:
getActivityInterpretersin interfaceSocialActivityInterpreterLocalService
-
getActivityInterpreters
- Specified by:
getActivityInterpretersin interfaceSocialActivityInterpreterLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin 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:
interpretin 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
nullif a compatible interpreter is not found
-
interpret
public SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext) - Specified by:
interpretin interfaceSocialActivityInterpreterLocalService
-
updateActivitySet
- Specified by:
updateActivitySetin interfaceSocialActivityInterpreterLocalService- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<SocialActivityInterpreterLocalService>
-
setWrappedService
public void setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) - Specified by:
setWrappedServicein interfaceServiceWrapper<SocialActivityInterpreterLocalService>
-