Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Richard Gibson
AnnouncementsEntry and Hooks
25. Januar 2011 04:47

Richard Gibson

Rang: Junior Member

Nachrichten: 30

Eintrittsdatum: 19. Februar 2010

Neue Beiträge


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?



Participate in the State of Liferay Community 2017. Help the community and even win some prizes!