Fórum
Service Interface Instantiation
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
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.
Your portlet war is single war or separete war file.
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
is the second option, are separate war files
thanks for your reply
David H Nebinger, modificado 11 Anos atrás.
RE: Service Interface Instantiation
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens RecentesNicolas 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());