public class SocialActivityInterpreterLocalServiceWrapper extends Object implements ServiceWrapper<SocialActivityInterpreterLocalService>, SocialActivityInterpreterLocalService
SocialActivityInterpreterLocalService
.SocialActivityInterpreterLocalService
Constructor and Description |
---|
SocialActivityInterpreterLocalServiceWrapper() |
SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) |
Modifier and Type | Method and Description |
---|---|
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()
public SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
public Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
getActivityInterpreters
in interface SocialActivityInterpreterLocalService
public List<SocialActivityInterpreter> getActivityInterpreters(String selector)
getActivityInterpreters
in interface SocialActivityInterpreterLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface SocialActivityInterpreterLocalService
public 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 SocialActivityInterpreterLocalService
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 SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
interpret
in interface SocialActivityInterpreterLocalService
public void updateActivitySet(long activityId) throws PortalException
updateActivitySet
in interface SocialActivityInterpreterLocalService
PortalException
public SocialActivityInterpreterLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<SocialActivityInterpreterLocalService>
public void setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
setWrappedService
in interface ServiceWrapper<SocialActivityInterpreterLocalService>