Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Hoel Chatellier
Java : How define access rights between a layout and a role
30. Juli 2012 06:08
Antwort

Hoel Chatellier

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 11. Juli 2012

Neue Beiträge

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
31. Juli 2012 01:38
Antwort

Hoel Chatellier

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 11. Juli 2012

Neue Beiträge

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
2. August 2012 06:35
Antwort

Hoel Chatellier

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 11. Juli 2012

Neue Beiträge

Nobody have an idea ?
Sat C
RE: Java : How define access rights between a layout and a role
2. August 2012 16:55
Antwort

Sat C

Rang: New Member

Nachrichten: 14

Eintrittsdatum: 22. Dezember 2011

Neue Beiträge

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

Hoel Chatellier

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 11. Juli 2012

Neue Beiträge

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

Thank you.