Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
José Parra Martín
getPermissionChecker() in service hook
September 11, 2012 12:44 PM
Answer

José Parra Martín

Rank: New Member

Posts: 5

Join Date: January 11, 2012

Recent Posts

Hi,

I'm trying to implement a service hook for DLFileEntryService, overriding some methods. My class, named MyDLFileEntryService, is extending from DLFileEntryServiceWrapper. In this class, I need call a method getPermissionChecker(), but not accesible from here. However, getPermissionChecker() is called from DLFileEntryServiceImpl in the portal.

How could I call getPermissionChecker() from MyDLFileEntryService class? Is this possible from a hook?

Thanks in advance!!
Mika Koivisto
RE: getPermissionChecker() in service hook
September 11, 2012 3:58 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1498

Join Date: August 7, 2006

Recent Posts

1PermissionThreadLocal.getPermissionChecker()


That should do it.