Foren

resourceLocalService.addResources

thumbnail
Priyanka Dhingra, geändert vor 11 Jahren.

resourceLocalService.addResources

Liferay Master Beiträge: 501 Beitrittsdatum: 20.12.11 Neueste Beiträge
blogsEntryPersistence.update(entry, false);
resourceLocalService.addResources(
			entry.getCompanyId(), entry.getGroupId(), entry.getUserId(),
			BlogsEntry.class.getName(), entry.getEntryId(), false,
			addGroupPermissions, addGuestPermissions);


What does this signify???
After inserting into database why is addResources been called??
thumbnail
Priyanka Dhingra, geändert vor 11 Jahren.

RE: resourceLocalService.addResources

Liferay Master Beiträge: 501 Beitrittsdatum: 20.12.11 Neueste Beiträge
Any inputs on,
Why do we need to update the resources table, while implementing permission??
thumbnail
Nicolas Tamayo, geändert vor 11 Jahren.

RE: resourceLocalService.addResources

Junior Member Beiträge: 29 Beitrittsdatum: 03.10.12 Neueste 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
thumbnail
Subhash Pavuskar, geändert vor 11 Jahren.

RE: resourceLocalService.addResources

Regular Member Beiträge: 234 Beitrittsdatum: 13.03.12 Neueste Beiträge
Hi,

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