Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Aritz Galdos
Extend Liferay service and expose via REST / JSON
2 gennaio 2013 7.55
Risposta

Aritz Galdos

Punteggio: Expert

Messaggi: 409

Data di Iscrizione: 15 maggio 2007

Messaggi recenti

Hi community,

I am accesing Liferay data from an external system via JSON/REST. The services consist in both custom and built-in services of Liferay. I have no problem with custom services as I can add or modify the methods whenever I need.

But I would like to extend UserService with a new method and expose it via JSON service too.

I Implemented a Hook to override a Portal Service and deploed it to Liferay server, but the new method does not seem to be exposed via REST

Did anyone override + expose Liferay own services?

Regards!!!
Jelmer Kuperus
RE: Extend Liferay service and expose via REST / JSON
2 gennaio 2013 8.52
Risposta

Jelmer Kuperus

Punteggio: Liferay Legend

Messaggi: 1192

Data di Iscrizione: 10 marzo 2010

Messaggi recenti

Service hooks only let you change the implementation of existing service methods.

You should probably create your own service that calls the userservice

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