Liferay 7.0-ce-b4

com.liferay.portlet.social.service
Class SocialActivityInterpreterLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.social.service.SocialActivityInterpreterLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, ServiceWrapper<SocialActivityInterpreterLocalService>, SocialActivityInterpreterLocalService

@ProviderType
public class SocialActivityInterpreterLocalServiceWrapper
extends Object
implements SocialActivityInterpreterLocalService, ServiceWrapper<SocialActivityInterpreterLocalService>

Provides a wrapper for SocialActivityInterpreterLocalService.

See Also:
SocialActivityInterpreterLocalService

Constructor Summary
SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
           
 
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.
 Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
           
 List<SocialActivityInterpreter> getActivityInterpreters(String selector)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 SocialActivityInterpreterLocalService getWrappedService()
           
 SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, replaced by interpret(String, SocialActivity, ServiceContext)
 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 setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
           
 void updateActivitySet(long activityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityInterpreterLocalServiceWrapper

public SocialActivityInterpreterLocalServiceWrapper(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
Method Detail

addActivityInterpreter

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

Specified by:
addActivityInterpreter in interface SocialActivityInterpreterLocalService
Parameters:
activityInterpreter - the activity interpreter

deleteActivityInterpreter

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

Specified by:
deleteActivityInterpreter in interface SocialActivityInterpreterLocalService
Parameters:
activityInterpreter - the activity interpreter

getActivityInterpreters

public Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
Specified by:
getActivityInterpreters in interface SocialActivityInterpreterLocalService

getActivityInterpreters

public List<SocialActivityInterpreter> getActivityInterpreters(String selector)
Specified by:
getActivityInterpreters in interface SocialActivityInterpreterLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface SocialActivityInterpreterLocalService
Returns:
the OSGi service identifier

interpret

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

Specified by:
interpret in interface SocialActivityInterpreterLocalService

interpret

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

Specified by:
interpret in interface SocialActivityInterpreterLocalService
Parameters:
selector - the context in which the activity interpreter is used
activity - the activity to be translated to human readable form
serviceContext - 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

public SocialActivityFeedEntry interpret(String selector,
                                         SocialActivitySet activitySet,
                                         ServiceContext serviceContext)
Specified by:
interpret in interface SocialActivityInterpreterLocalService

updateActivitySet

public void updateActivitySet(long activityId)
                       throws PortalException
Specified by:
updateActivitySet in interface SocialActivityInterpreterLocalService
Throws:
PortalException

getWrappedService

public SocialActivityInterpreterLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<SocialActivityInterpreterLocalService>

setWrappedService

public void setWrappedService(SocialActivityInterpreterLocalService socialActivityInterpreterLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<SocialActivityInterpreterLocalService>

Liferay 7.0-ce-b4