Liferay 6.2.0

com.liferay.portlet.social.service
Interface SocialActivityInterpreterLocalService

All Superinterfaces:
BaseLocalService
All Known Implementing Classes:
SocialActivityInterpreterLocalServiceBaseImpl, SocialActivityInterpreterLocalServiceImpl, SocialActivityInterpreterLocalServiceWrapper

@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.

See Also:
SocialActivityInterpreterLocalServiceUtil, SocialActivityInterpreterLocalServiceBaseImpl, SocialActivityInterpreterLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
          Adds the activity interpreter to the list of available interpreters.
abstract  void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
          Removes the activity interpreter from the list of available interpreters.
abstract  Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
           
abstract  List<SocialActivityInterpreter> getActivityInterpreters(String selector)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, replaced by interpret(String, SocialActivity, ServiceContext)
abstract  SocialActivityFeedEntry interpret(String selector, SocialActivity activity, ServiceContext serviceContext)
          Creates a human readable activity feed entry for the activity using an available compatible activity interpreter.
abstract  SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  void updateActivitySet(long activityId)
           
 

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

getActivityInterpreters

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()

getActivityInterpreters

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SocialActivityInterpreter> getActivityInterpreters(String selector)

interpret

SocialActivityFeedEntry interpret(SocialActivity activity,
                                  ThemeDisplay themeDisplay)
Deprecated. As of 6.2.0, replaced by interpret(String, SocialActivity, ServiceContext)


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:
activity - the activity to be translated to human readable form
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

void updateActivitySet(long activityId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0