Fórum

Get all Layouts or Site Pages from login.event.post using Liferay API

thumbnail
Surodip Patra, modificado 11 Anos atrás.

Get all Layouts or Site Pages from login.event.post using Liferay API

Junior Member Postagens: 29 Data de Entrada: 25/01/13 Postagens Recentes
Hi Liferay,

I have created a login hook and I am using login.event.post.
Now my requirement is like that, whenever a user logged in, I need all the Layouts or Pages for that Company.
The logged in user may see some of the whole layouts (due to his Role Permission), but I have to get all the Site Pages.

Can anyone help me in this?

Thanks & Regards,
Surodip Patra
thumbnail
Jaynil A Bagdai, modificado 11 Anos atrás.

RE: Get all Layouts or Site Pages from login.event.post using Liferay API (Resposta)

Regular Member Postagens: 119 Data de Entrada: 03/03/12 Postagens Recentes
Hi Surodip,

You can use Dynamic Query with LayoutLocalServiceUtil to get all layouts, and there you can specify criteria as company_id with current company id.
Which will list you all layouts of that company.

hope this helps you.

Regards,
Jaynil
thumbnail
Surodip Patra, modificado 11 Anos atrás.

RE: Get all Layouts or Site Pages from login.event.post using Liferay API

Junior Member Postagens: 29 Data de Entrada: 25/01/13 Postagens Recentes
Thanks Jaynil.