@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SocialActivityInterpreterLocalService extends BaseLocalService
SocialActivityInterpreterLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
Map<String,List<SocialActivityInterpreter>> |
getActivityInterpreters() |
List<SocialActivityInterpreter> |
getActivityInterpreters(String selector) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
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 |
updateActivitySet(long activityId) |
@Transactional(propagation=SUPPORTS, readOnly=true) Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivityInterpreter> getActivityInterpreters(String selector)
String getOSGiServiceIdentifier()
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
foundSocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
void updateActivitySet(long activityId) throws PortalException
PortalException