about 5 years ago
Get Current User in Liferay:- We can find the current logged in user in liferay using the below code Script. There are two methods to get the current User of liferay as following:
1. we can directly use the PortalUtil class in Liferay.
2. But we cannot access directly PortalUtil class in any where so we can use below code to get the current user with the help of ThemeDisplay Class.
ThemeDisplay themeDisp = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using