Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Nicolas Tamayo
Service Interface Instantiation
30 de Março de 2013 13:03
Resposta

Nicolas Tamayo

Ranking: Junior Member

Mensagens: 29

Data de entrada: 3 de Outubro de 2012

Mensagens 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
RE: Service Interface Instantiation
1 de Abril de 2013 23:59
Resposta

Gouse Basha

Ranking: New Member

Mensagens: 10

Data de entrada: 30 de Novembro de 2012

Mensagens recentes

Hi Nicolas,

Your portlet war is single war or separete war file.
Nicolas Tamayo
RE: Service Interface Instantiation
20 de Abril de 2013 10:22
Resposta

Nicolas Tamayo

Ranking: Junior Member

Mensagens: 29

Data de entrada: 3 de Outubro de 2012

Mensagens recentes

Hi Gouse Basha.

is the second option, are separate war files

thanks for your reply
David H Nebinger
RE: Service Interface Instantiation
20 de Abril de 2013 12:42
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11306

Data de entrada: 1 de Setembro de 2006

Mensagens 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 Lima Baima
RE: Service Interface Instantiation
20 de Abril de 2013 12:50
Resposta

Remis Lima Baima

Ranking: New Member

Mensagens: 8

Data de entrada: 5 de Novembro de 2010

Mensagens recentes

Just to exemplify/complement the answer of David: UserLocalServiceUtil.createUser(CounterLocalServiceUtil.increment());