|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.BaseLocalServiceImpl com.liferay.portlet.social.service.base.SocialActivityInterpreterLocalServiceBaseImpl com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl
public class SocialActivityInterpreterLocalServiceImpl
The social activity interpreter local service. Activity interpreters are classes responsible for translating activity records into human readable form. This service holds a list of interpreters and provides methods to add or remove items from this list.
Activity interpreters use the language files to get text fragments based on the activity's type and the type of asset on which the activity was done. Interpreters are created for specific asset types and are only capable of translating activities done on assets of those types. As an example, there is an interpreter BlogsActivityInterpreter that can only translate activity records for blog entries.
Field Summary |
---|
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
layoutPersistence |
Constructor Summary | |
---|---|
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. |
Map<String,List<SocialActivityInterpreter>> |
getActivityInterpreters()
|
List<SocialActivityInterpreter> |
getActivityInterpreters(String selector)
|
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 |
updateActivitySet(long activityId)
|
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
getClassLoader, getLayoutURL, getLayoutURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialActivityInterpreterLocalServiceImpl()
Method Detail |
---|
public void addActivityInterpreter(SocialActivityInterpreter activityInterpreter)
activityInterpreter
- the activity interpreterpublic void deleteActivityInterpreter(SocialActivityInterpreter activityInterpreter)
activityInterpreter
- the activity interpreterpublic Map<String,List<SocialActivityInterpreter>> getActivityInterpreters()
public List<SocialActivityInterpreter> getActivityInterpreters(String selector)
public SocialActivityFeedEntry interpret(SocialActivity activity, ThemeDisplay themeDisplay)
interpret(String,
SocialActivity, ServiceContext)
public SocialActivityFeedEntry interpret(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.
activity
- the activity to be translated to human readable form
null
if a compatible interpreter is not
foundpublic SocialActivityFeedEntry interpret(String selector, SocialActivitySet activitySet, ServiceContext serviceContext)
public void updateActivitySet(long activityId) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |