Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mazhar Alam
User Activities Portlet customization
September 5, 2012 2:18 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

Hi all,

I need to customize the activities portlet, I want to display the loggedin user activities not all user activities.
So how should I proceed to this..

Thanks
David H Nebinger
RE: User Activities Portlet customization
September 5, 2012 5:21 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8389

Join Date: September 1, 2006

Recent Posts

You cannot do this in a consistent way.

Liferay can know about live sessions in the current instance using the live.users.enabled property, but this is in-memory only and will not work in a clustered environment.

So logged in users won't work too well.

Then there's lhe logged out users. You do not have to click 'logout' to exit, all you have to do is close the browser. Liferay will not know that the user is actually gone until the session times out.

So logged out users won't work too well, either.
Mazhar Alam
RE: User Activities Portlet customization
September 10, 2012 4:25 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

Thanks David for your suggestion..