Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.service
Interface SocialActivityInterpreterLocalService

All Superinterfaces:
BaseLocalService
All Known Implementing Classes:
SocialActivityInterpreterLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface SocialActivityInterpreterLocalService
extends BaseLocalService

The interface for the social activity interpreter local service.

This is a local service. 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.

See Also:
SocialActivityInterpreterLocalServiceUtil, com.liferay.portlet.social.service.base.SocialActivityInterpreterLocalServiceBaseImpl, com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl

Method Summary
 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.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
          Creates a human readable activity feed entry for the activity using an available compatible activity interpreter.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addActivityInterpreter

void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Adds the activity interpreter to the list of available interpreters.

Parameters:
activityInterpreter - the activity interpreter

deleteActivityInterpreter

void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
Removes the activity interpreter from the list of available interpreters.

Parameters:
activityInterpreter - the activity interpreter

interpret

SocialActivityFeedEntry interpret(SocialActivity activity,
                                  ThemeDisplay themeDisplay)
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:
activity - the activity to be translated to human readable form
themeDisplay - the theme display needed by interpreters to create links and get localized text fragments
Returns:
the activity feed that is a human readable form of the activity record or null if a compatible interpreter is not found

Liferay 6.1.2-ce-ga3