Forums de discussion

How to @Override class in Portal Liferay 7 GA

thumbnail
Tien Nguyen, modifié il y a 7 années.

How to @Override class in Portal Liferay 7 GA

New Member Publications: 21 Date d'inscription: 02/04/16 Publications récentes
I wanna @Override Class in portal, but Liferay 7 not support Ext, I dont know What to do.
Any one help me !!!
Thanks
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
LR7 does support EXT, but the core classes is a much smaller set than what it used to be.

Now most of the core has been reworked into an OSGi bundle.

Which class are you trying to extend?
thumbnail
Tien Nguyen, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

New Member Publications: 21 Date d'inscription: 02/04/16 Publications récentes
Thank for RE my post.
Now I want extends class LoginUtil in module com.liferay.login, what I have to do.
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Are you sure?

The reason I ask, the current LoginUtil doesn't really do much, it offloads a lot of the responsibility to other modules. It may not be necessary to actually extend LoginUtil at all.

Can you share what you need to do and perhaps I can point to a better location?
lokesh gorrela, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

Regular Member Publications: 173 Date d'inscription: 09/03/16 Publications récentes
Hi SKTT1. Faker

How to @Override class in Portal Liferay 7 GA. If you know this could you please tell the process.
Thanks
Regards
Lokesh
thumbnail
SKTT1. Faker, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

New Member Publications: 21 Date d'inscription: 02/04/16 Publications récentes
all grades Liferay is relatively complete, if necessary changes are only a few modifications.
To override one particular class, first go to the module folder in OSGi module, where contains editing class, then that class decode and edit as you wish. Finally Encode back and enjoy.
lokesh gorrela, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

Regular Member Publications: 173 Date d'inscription: 09/03/16 Publications récentes
Hello SKTT1. Faker
Thanks for your replay

I did not understand properly. Could you please tell the process with some clarity.

Thanks
Regards
Lokesh
lokesh gorrela, modifié il y a 7 années.

RE: How to @Override class in Portal Liferay 7 GA

Regular Member Publications: 173 Date d'inscription: 09/03/16 Publications récentes
Hello SKTT1. Faker
Thanks for your replay

I did not understand properly. Could you please tell the process with some clarity.This is greate help to me.

Thanks
Regards
Lokesh