掲示板
Get all Layouts or Site Pages from login.event.post using Liferay API
11年前 に Surodip Patra によって更新されました。
Get all Layouts or Site Pages from login.event.post using Liferay API
Junior Member 投稿: 29 参加年月日: 13/01/25 最新の投稿
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
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
11年前 に Jaynil A Bagdai によって更新されました。
RE: Get all Layouts or Site Pages from login.event.post using Liferay API (回答)
Regular Member 投稿: 119 参加年月日: 12/03/03 最新の投稿
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
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
11年前 に Surodip Patra によって更新されました。
RE: Get all Layouts or Site Pages from login.event.post using Liferay API
Junior Member 投稿: 29 参加年月日: 13/01/25 最新の投稿
Thanks Jaynil.