Fórum

From which table does the function "PortalUtil.getPortal()" fetch from

praveen orvakanti, modificado 12 Anos atrás.

From which table does the function "PortalUtil.getPortal()" fetch from

Junior Member Postagens: 51 Data de Entrada: 10/08/11 Postagens Recentes
Hi All,
From which table does the function "PortalUtil.getPortal()" fetch the Portal? I'm using the "Oracle" database and i have no 'Portal' table as such in it. There is only a 'Portlet' table in the database.
thumbnail
Samuel Kong, modificado 12 Anos atrás.

RE: From which table does the function "PortalUtil.getPortal()" fetch from

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
Praveen,

You're correct, there is no portal table. It's just a utility class and there's no corresponding database table.
praveen orvakanti, modificado 12 Anos atrás.

RE: From which table does the function "PortalUtil.getPortal()" fetch from

Junior Member Postagens: 51 Data de Entrada: 10/08/11 Postagens Recentes
Hi Samuel,
I was working with SO code base. I created a small widget, which tries to use SO portlets. I created a login form and then use it to login to the widget. But i'm getting a 'null' value returned when i try to fetch the Company using the function PortalUtil.getCompany(HTTPServletRequest request). I cam share the code with you if you need.

Thanks
thumbnail
Samuel Kong, modificado 12 Anos atrás.

RE: From which table does the function "PortalUtil.getPortal()" fetch from

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
I'm not sure, but you can try turning up the log level on com.liferay.portal.util.PortalInstances to see if that will help you determine the issue.