掲示板

AnnouncementsEntry and Hooks

thumbnail
13年前 に Richard Gibson によって更新されました。

AnnouncementsEntry and Hooks

Junior Member 投稿: 30 参加年月日: 10/02/19 最新の投稿
Hi,

I wanted to extent the Liferay AnnouncementsService to allow capture of an Image along with the standard announcement fields using a Hook.

The issue I have is I need to pass the image details into my class extending AnnouncementsEntryLocalServiceWrapper by using the call to serviceContext.getExpandoBridgeAttributes() but the method signature does not include the ServiceContext object.

Is it possible to use some other method to pass the image details into my method overriding AnnouncementsEntryLocalServiceWrapper.addEntry()?

Any idea why the ServiceContext is not an parameter of this method by default?

Cheers

Richard