Fórum

Service Interface Instantiation

thumbnail
Nicolas Tamayo, modificado 11 Anos atrás.

Service Interface Instantiation

Junior Member Postagens: 29 Data de Entrada: 03/10/12 Postagens Recentes
Hi Everybody.

I developed a set of service in a portlet plugin, after, i want make use of this services in other portlet plugin, this works properly, but when i want make a instantiation of a model interface, this instantiation is not possible because the EntityImpl is present in the src folder of the first portlet plugin.

I wish make the instantiation of this Interface in the second portlet plugin, but i don't know how.

I hope you can help me!!!

Thanks in advance
Gouse Basha, modificado 11 Anos atrás.

RE: Service Interface Instantiation

New Member Postagens: 10 Data de Entrada: 01/12/12 Postagens Recentes
Hi Nicolas,

Your portlet war is single war or separete war file.
thumbnail
Nicolas Tamayo, modificado 11 Anos atrás.

RE: Service Interface Instantiation

Junior Member Postagens: 29 Data de Entrada: 03/10/12 Postagens Recentes
Hi Gouse Basha.

is the second option, are separate war files

thanks for your reply
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: Service Interface Instantiation

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Nicolas Tamayo:
I wish make the instantiation of this Interface in the second portlet plugin, but i don't know how.



Use the EntityLocalServiceUtil.createEntity(pk) method.
Remis Baima, modificado 11 Anos atrás.

RE: Service Interface Instantiation

New Member Postagens: 8 Data de Entrada: 05/11/10 Postagens Recentes
Just to exemplify/complement the answer of David: UserLocalServiceUtil.createUser(CounterLocalServiceUtil.increment());