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
Priyanka Dhingra
resourceLocalService.addResources
4 de Janeiro de 2013 03:19
Resposta

Priyanka Dhingra

Ranking: Liferay Master

Mensagens: 501

Data de entrada: 19 de Dezembro de 2011

Mensagens recentes

1blogsEntryPersistence.update(entry, false);
2resourceLocalService.addResources(
3            entry.getCompanyId(), entry.getGroupId(), entry.getUserId(),
4            BlogsEntry.class.getName(), entry.getEntryId(), false,
5            addGroupPermissions, addGuestPermissions);


What does this signify???
After inserting into database why is addResources been called??
Priyanka Dhingra
RE: resourceLocalService.addResources
6 de Janeiro de 2013 21:21
Resposta

Priyanka Dhingra

Ranking: Liferay Master

Mensagens: 501

Data de entrada: 19 de Dezembro de 2011

Mensagens recentes

Any inputs on,
Why do we need to update the resources table, while implementing permission??
Nicolas Tamayo
RE: resourceLocalService.addResources
11 de Janeiro de 2013 06:33
Resposta

Nicolas Tamayo

Ranking: Junior Member

Mensagens: 29

Data de entrada: 3 de Outubro de 2012

Mensagens recentes

the method addResources, is used to enable the Liferay permission system above the Object of the class , in your case BlogsEntry.

in determinate cases, this method enable the Custom ResourceAction, that you can create in /src/resource-actions/default.xml, to implement the Liferay permission system to the Actions of your Custom Entities.

i hope this help you.

Nicolas Tamayo
Subhash Pavuskar
RE: resourceLocalService.addResources
12 de Janeiro de 2013 22:48
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

Hi,

I hope this Wiki may help you to understand Check this out Click Here