Interface SocialActivityInterpreterLocalService
- All Superinterfaces:
BaseLocalService
- All Known Implementing Classes:
SocialActivityInterpreterLocalServiceWrapper
@CTAware
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface SocialActivityInterpreterLocalService
extends BaseLocalService
Provides the local service interface for SocialActivityInterpreter. Methods of this
service will not have security checks based on the propagated JAAS
credentials because this service can only be accessed from within the same
VM.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
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
updateActivitySet
(long activityId)
-
Method Details
-
getActivityInterpreters
@Transactional(propagation=SUPPORTS, readOnly=true) Map<String,List<SocialActivityInterpreter>> getActivityInterpreters() -
getActivityInterpreters
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivityInterpreter> getActivityInterpreters(String selector) -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
interpret
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.
- 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
SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext) -
updateActivitySet
- Throws:
PortalException
-