Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Priyanka Dhingra
resourceLocalService.addResources
January 4, 2013 3:19 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

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
January 6, 2013 9:21 PM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

Any inputs on,
Why do we need to update the resources table, while implementing permission??
Nicolas Tamayo
RE: resourceLocalService.addResources
January 11, 2013 6:33 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

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
January 12, 2013 10:48 PM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 216

Join Date: March 12, 2012

Recent Posts

Hi,

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