Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Priyanka Dhingra
resourceLocalService.addResources
4. Januar 2013 03:19
Antwort

Priyanka Dhingra

Rang: Liferay Master

Nachrichten: 501

Eintrittsdatum: 19. Dezember 2011

Neue Beiträge

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. Januar 2013 21:21
Antwort

Priyanka Dhingra

Rang: Liferay Master

Nachrichten: 501

Eintrittsdatum: 19. Dezember 2011

Neue Beiträge

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

Nicolas Tamayo

Rang: Junior Member

Nachrichten: 29

Eintrittsdatum: 3. Oktober 2012

Neue Beiträge

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. Januar 2013 22:48
Antwort

Subhash Pavuskar

Rang: Regular Member

Nachrichten: 234

Eintrittsdatum: 12. März 2012

Neue Beiträge

Hi,

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