Enable custom assets for social activity

thumbnail
Rahul Pande, modified 13 Years ago. Expert Posts: 310 Join Date: 7/7/10 Recent Posts
Hi All,

I have my custom portlet with service builder. I want to enable this portlet for social activity so that its activities can be shown on users public page.
My liferay version is 6.0.6 CE

As per mentioned in forums I did following things :

1. Created XXXActibityInterpreter class
2. Created XXXActivityKeys class
3. Added entry in liferay-portlet.xml for <social-activity-interpreter-class></social-activity-interpreter-class>
4. And adding socialActivityLocalService.addActivity() in its XXXLocalServiceImpl class while add, update and delete methods.

But the problem is, while adding a new entity no record is getting generated in socialactivity table. I debugged the code but found nothing problematic.

For other entities like blogs, wiki etc social activity is working.

Do I have to do some other configuration for enabling my custom portlet for social activity ?

Any pointer will be helpful. emoticon
thumbnail
Harish Kumar, modified 13 Years ago. Expert Posts: 483 Join Date: 7/31/10 Recent Posts
Hi Rahul

Have you configured the Social Activity Entity in your service.xml file -

<reference package-path="com.liferay.portlet.social" entity="SocialActivity" />
thumbnail
Rahul Pande, modified 13 Years ago. Expert Posts: 310 Join Date: 7/7/10 Recent Posts
Harish Kumar:
Hi Rahul

Have you configured the Social Activity Entity in your service.xml file -

<reference package-path="com.liferay.portlet.social" entity="SocialActivity" />



Yes Harish,

I have added these reference in my service.xml
As I already explained I'm able to call addActivity() method and everything is working fine, but record is not getting created in socialactivity table

Thanks
Rahul Pande