Foros de discusión

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

thumbnail
Surodip Patra, modificado hace 11 años.

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

Junior Member Mensajes: 29 Fecha de incorporación: 25/01/13 Mensajes recientes
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 hace 11 años.

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

Regular Member Mensajes: 119 Fecha de incorporación: 3/03/12 Mensajes recientes
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 hace 11 años.

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

Junior Member Mensajes: 29 Fecha de incorporación: 25/01/13 Mensajes recientes
Thanks Jaynil.