Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hoel Chatellier
Java : How define access rights between a layout and a role
July 30, 2012 6:08 AM
Answer

Hoel Chatellier

Rank: New Member

Posts: 20

Join Date: July 11, 2012

Recent Posts

Hi !

With the interface, we can define access rights for a layout by role,
but, how can we make it with code ? By exemple, define the UPDATE permission
for the Organisation User for the layout X.

Thanks for your answers.
Hoel Chatellier
RE: Java : How define access rights between a layout and a role
July 31, 2012 1:38 AM
Answer

Hoel Chatellier

Rank: New Member

Posts: 20

Join Date: July 11, 2012

Recent Posts

By the interface, it's this :



I just want make this by code.
Hoel Chatellier
RE: Java : How define access rights between a layout and a role
August 2, 2012 6:35 AM
Answer

Hoel Chatellier

Rank: New Member

Posts: 20

Join Date: July 11, 2012

Recent Posts

Nobody have an idea ?
Sat C
RE: Java : How define access rights between a layout and a role
August 2, 2012 4:55 PM
Answer

Sat C

Rank: New Member

Posts: 14

Join Date: December 22, 2011

Recent Posts

You can use "ResourcePermissionLocalServiceUtil.addResourcePermission".
Hoel Chatellier
RE: Java : How define access rights between a layout and a role
August 13, 2012 8:47 AM
Answer

Hoel Chatellier

Rank: New Member

Posts: 20

Join Date: July 11, 2012

Recent Posts

Yes,
finaly it works with this,
but it took me a while to understand exactly what he expected parameters.

Thank you.