Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jack Bakker
impersonate (doasuser) with Vaadin
April 18, 2012 9:27 AM
Answer

Jack Bakker

Rank: Liferay Master

Posts: 840

Join Date: January 3, 2010

Recent Posts

how do I get, in a Vaadin portlet, the impersonated user from the doAsUserId param ?
David H Nebinger
RE: impersonate (doasuser) with Vaadin
April 18, 2012 8:04 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11305

Join Date: September 1, 2006

Recent Posts

Both the user and the real user are available via the ThemeDisplay class.

If you register your application as a PortletRequestListener, you get access to the request object and with that you can grab the ThemeDisplay instance from the request attributes.
Jack Bakker
RE: impersonate (doasuser) with Vaadin
April 20, 2012 12:03 PM
Answer

Jack Bakker

Rank: Liferay Master

Posts: 840

Join Date: January 3, 2010

Recent Posts

got it, thanks