フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Priyanka Dhingra
resourceLocalService.addResources
2013/01/04 3:19
答え

Priyanka Dhingra

ランク: Liferay Master

投稿: 501

参加年月日: 2011/12/19

最近の投稿

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
2013/01/06 21:21
答え

Priyanka Dhingra

ランク: Liferay Master

投稿: 501

参加年月日: 2011/12/19

最近の投稿

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

Nicolas Tamayo

ランク: Junior Member

投稿: 29

参加年月日: 2012/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
Subhash Pavuskar
RE: resourceLocalService.addResources
2013/01/12 22:48
答え

Subhash Pavuskar

ランク: Regular Member

投稿: 234

参加年月日: 2012/03/12

最近の投稿

Hi,

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