掲示板

resourceLocalService.addResources

thumbnail
11年前 に Priyanka Dhingra によって更新されました。

resourceLocalService.addResources

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
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
11年前 に Priyanka Dhingra によって更新されました。

RE: resourceLocalService.addResources

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
Any inputs on,
Why do we need to update the resources table, while implementing permission??
thumbnail
11年前 に Nicolas Tamayo によって更新されました。

RE: resourceLocalService.addResources

Junior Member 投稿: 29 参加年月日: 12/10/03 最新の投稿
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
11年前 に Subhash Pavuskar によって更新されました。

RE: resourceLocalService.addResources

Regular Member 投稿: 234 参加年月日: 12/03/13 最新の投稿
Hi,

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