Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Enable custom assets for social activity
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.
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.
Hi Rahul
Have you configured the Social Activity Entity in your service.xml file -
Have you configured the Social Activity Entity in your service.xml file -
<reference package-path="com.liferay.portlet.social" entity="SocialActivity" />
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