Message Boards

Retrieving the comanyid in a portlet

opfau opfau, modified 19 Years ago.

Retrieving the comanyid in a portlet

New Member Posts: 4 Join Date: 8/18/04 Recent Posts
Hi,<br /><br />is it possible to retrieve the companyid in a portlet in liferay ?<br /><br />Thanks,<br />Oliver
thumbnail
Brian Chan, modified 19 Years ago.

Retrieving the comanyid in a portlet

Liferay Master Posts: 753 Join Date: 8/5/04 Recent Posts
PortalUtill.getCompanyId(req) if you&#39;re using a bundled portlet<br /> <br />If you&#39;re using a hot deploy portlet, there&#39;s only one company id.<br /> <br />String companyId = PortalInstances.getDefaultCompanyId();