public class SocialActivityInterpreterLocalServiceWrapper extends Object implements ServiceWrapper<SocialActivityInterpreterLocalService>, SocialActivityInterpreterLocalService
SocialActivityInterpreterLocalService.SocialActivityInterpreterLocalService| Constructor and Description |
|---|
SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Adds the activity interpreter to the list of available interpreters.
|
void |
deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Removes the activity interpreter from the list of available interpreters.
|
Map<String,List<SocialActivityInterpreter>> |
getActivityInterpreters() |
List<SocialActivityInterpreter> |
getActivityInterpreters(String selector) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
SocialActivityInterpreterLocalService |
getWrappedService() |
SocialActivityFeedEntry |
interpret(String selector,
SocialActivity activity,
ServiceContext serviceContext)
Creates a human readable activity feed entry for the activity using an
available compatible activity interpreter.
|
SocialActivityFeedEntry |
interpret(String selector,
SocialActivitySet activitySet,
ServiceContext serviceContext) |
void |
setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) |
void |
updateActivitySet(long activityId) |
public SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
public void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
addActivityInterpreter in interface SocialActivityInterpreterLocalServiceactivityInterpreter - the activity interpreterpublic void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
deleteActivityInterpreter in interface SocialActivityInterpreterLocalServiceactivityInterpreter - the activity interpreterpublic Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
getActivityInterpreters in interface SocialActivityInterpreterLocalServicepublic List<SocialActivityInterpreter> getActivityInterpreters(String selector)
getActivityInterpreters in interface SocialActivityInterpreterLocalServicepublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface SocialActivityInterpreterLocalServicepublic 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.
interpret in interface SocialActivityInterpreterLocalServiceselector - 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 SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
interpret in interface SocialActivityInterpreterLocalServicepublic void updateActivitySet(long activityId)
throws PortalException
updateActivitySet in interface SocialActivityInterpreterLocalServicePortalExceptionpublic SocialActivityInterpreterLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<SocialActivityInterpreterLocalService>public void setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
setWrappedService in interface ServiceWrapper<SocialActivityInterpreterLocalService>