Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Hoel Chatellier
Java : How define access rights between a layout and a role
30 de Julho de 2012 06:08
Resposta

Hoel Chatellier

Ranking: New Member

Mensagens: 20

Data de entrada: 11 de Julho de 2012

Mensagens recentes

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 de Julho de 2012 01:38
Resposta

Hoel Chatellier

Ranking: New Member

Mensagens: 20

Data de entrada: 11 de Julho de 2012

Mensagens recentes

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 de Agosto de 2012 06:35
Resposta

Hoel Chatellier

Ranking: New Member

Mensagens: 20

Data de entrada: 11 de Julho de 2012

Mensagens recentes

Nobody have an idea ?
Sat C
RE: Java : How define access rights between a layout and a role
2 de Agosto de 2012 16:55
Resposta

Sat C

Ranking: New Member

Mensagens: 14

Data de entrada: 22 de Dezembro de 2011

Mensagens recentes

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

Hoel Chatellier

Ranking: New Member

Mensagens: 20

Data de entrada: 11 de Julho de 2012

Mensagens recentes

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

Thank you.