Fórum

Filtering Social Activity

thumbnail
Praful Shukla, modificado 7 Anos atrás.

Filtering Social Activity

Junior Member Postagens: 46 Data de Entrada: 29/09/15 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Filtering Social Activity (Resposta)

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.
thumbnail
Praful Shukla, modificado 7 Anos atrás.

RE: Filtering Social Activity

Junior Member Postagens: 46 Data de Entrada: 29/09/15 Postagens Recentes
Amos Fong:
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.


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