Forums de discussion

Filtering Social Activity

thumbnail
Praful Shukla, modifié il y a 7 années.

Filtering Social Activity

Junior Member Publications: 46 Date d'inscription: 29/09/15 Publications récentes
Hi,
I have created a hook to filter out Blog Entries in the Activities Portlet in Liferay 6.2.Following is the method which I've used in my hook in order to filter blog entries:

activities = SocialActivityLocalServiceUtil.getActivities(BlogsEntry.class.toString(),QueryUtil.ALL_POS,QueryUtil.ALL_POS);

But in my Activities Portlet it is showing "There are no recent activities".
(Note: I've added several blogs,whom entries were shown in Activities Portlet before deploying the hook.)


Any help over this..??

Thanks..!!
thumbnail
Amos Fong, modifié il y a 7 années.

RE: Filtering Social Activity (Réponse)

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.
thumbnail
Praful Shukla, modifié il y a 7 années.

RE: Filtering Social Activity

Junior Member Publications: 46 Date d'inscription: 29/09/15 Publications récentes
Amos Fong:
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.


Thanks buddy..!! Its working now..!!