Foros de discusión

Filtering Social Activity

thumbnail
Praful Shukla, modificado hace 7 años.

Filtering Social Activity

Junior Member Mensajes: 46 Fecha de incorporación: 29/09/15 Mensajes recientes
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 hace 7 años.

RE: Filtering Social Activity (Respuesta)

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.
thumbnail
Praful Shukla, modificado hace 7 años.

RE: Filtering Social Activity

Junior Member Mensajes: 46 Fecha de incorporación: 29/09/15 Mensajes recientes
Amos Fong:
Try BlogsEntry.class.getName(), toString() has some extra text besides just the classnme.


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