@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SocialActivityInterpreterLocalService extends BaseLocalService
SocialActivityInterpreterLocalServiceUtil,
com.liferay.portlet.social.service.base.SocialActivityInterpreterLocalServiceBaseImpl,
com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl| 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.
|
java.util.Map<java.lang.String,java.util.List<SocialActivityInterpreter>> |
getActivityInterpreters() |
java.util.List<SocialActivityInterpreter> |
getActivityInterpreters(java.lang.String selector) |
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
SocialActivityFeedEntry |
interpret(SocialActivity activity,
ThemeDisplay themeDisplay)
Deprecated.
As of 6.2.0, replaced by
interpret(String,
SocialActivity, ServiceContext) |
SocialActivityFeedEntry |
interpret(java.lang.String selector,
SocialActivity activity,
ServiceContext serviceContext)
Creates a human readable activity feed entry for the activity using an
available compatible activity interpreter.
|
SocialActivityFeedEntry |
interpret(java.lang.String selector,
SocialActivitySet activitySet,
ServiceContext serviceContext) |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
updateActivitySet(long activityId) |
void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
activityInterpreter - the activity interpretervoid deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
activityInterpreter - the activity interpreter@Transactional(propagation=SUPPORTS, readOnly=true) java.util.Map<java.lang.String,java.util.List<SocialActivityInterpreter>> getActivityInterpreters()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SocialActivityInterpreter> getActivityInterpreters(java.lang.String selector)
java.lang.String getBeanIdentifier()
@Deprecated SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
interpret(String,
SocialActivity, ServiceContext)SocialActivityFeedEntry interpret(java.lang.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(java.lang.String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanvoid updateActivitySet(long activityId)
throws PortalException
PortalException