掲示板
Getting User Information and Database Access?
13年前 に Kadir BASOL によって更新されました。
Getting User Information and Database Access?
Junior Member 投稿: 91 参加年月日: 10/08/10 最新の投稿
hi , I'm using GenericPortlet ,
I need to get user is power user or general user.
How can i get that information from portlet ?
From here :
>protected void doView(RenderRequest request, RenderResponse response)
>throws PortletException, IOException
and my other question is , how can i access default connection pool what liferay uses ?
Thanks alot
I need to get user is power user or general user.
How can i get that information from portlet ?
From here :
>protected void doView(RenderRequest request, RenderResponse response)
>throws PortletException, IOException
and my other question is , how can i access default connection pool what liferay uses ?
Thanks alot
13年前 に Thiago Leão Moreira によって更新されました。
RE: Getting User Information and Database Access?
Liferay Legend 投稿: 1449 参加年月日: 07/10/10 最新の投稿
You can invoke this:
And use this class to get a connection to the Liferay's database:
request.isUserInRole("Power User");
And use this class to get a connection to the Liferay's database:
com.liferay.portal.kernel.dao.jdbc.DataAccess