Foren

AnnouncementsEntry and Hooks

thumbnail
Richard Gibson, geändert vor 13 Jahren.

AnnouncementsEntry and Hooks

Junior Member Beiträge: 30 Beitrittsdatum: 19.02.10 Neueste Beiträge
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