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
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're using a bundled portlet<br /> <br />If you're using a hot deploy portlet, there's only one company id.<br /> <br />String companyId = PortalInstances.getDefaultCompanyId();