Foren

Migrate a hook in Liferay 7

Nicolas Marcus, geändert vor 7 Jahren.

Migrate a hook in Liferay 7

New Member Beiträge: 6 Beitrittsdatum: 22.09.16 Neueste Beiträge
Hi,

As development tool, I'm using Liferay IDE plugin in Eclipse.
I installed the following shibboleth plugin and it works perfectly in Liferay 6.2 GA5 : https://github.com/burgosz/liferay-shibboleth-plugin
To be able to make it work, I converted the plugin to an ant version to be able to use the Liferay Plugin SDK facility with Liferay IDE.

Now, I am trying to upgrade it to Liferay 7.
Per documentation : https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/migrating-existing-code-to-liferay-7
Possible options to achieve this are :
Option 1: Adapting your 6.2 traditional plugins to Liferay 7’s API
Option 2: Converting your traditional plugins to OSGi modules
I have followed Option 1 and managed to refactor the imports but have trouble with the jsp's that fail to be found.

I suspect Option 1 is a bit of an utopia to be able to migrate this piece of code to LR7. Also the Code Migrate Tool doesn't say anything.
Also, it is very hard to troubleshoot as I can't find any existing sample of authentication code for Liferay 7. Even the marketplace shows a blank page.

Should I consider staying in LR 6.2 as support/documentation seems missing for code migration to LR7 ?

Thanks.
thumbnail
Alberto Chaparro, geändert vor 7 Jahren.

RE: Migrate a hook in Liferay 7

Liferay Master Beiträge: 549 Beitrittsdatum: 25.04.11 Neueste Beiträge
Hi Nicolas,

You have to take into account that Shibboleth plugin is a lab app and that one of the reasons why it hasn't been moved to Liferay 7 yet:
https://web.liferay.com/es/marketplace/-/mp/application/33233008
(maybe you can help us with this and contribute it)

I don't know about this specific case but the option 1 is not an utopia since we have done that for all ours plugins before moving them into modules. You can also find an example here:
https://github.com/epgarcia/jukebox-portlet/tree/LSNA.2016.MIGRATION
(This branch just compile just adapt the plugin to Liferay 7's API)

Anyway, please post the specific problem you are having so that the community can help you.

Regards.
Nicolas Marcus, geändert vor 7 Jahren.

RE: Migrate a hook in Liferay 7 (Antwort)

New Member Beiträge: 6 Beitrittsdatum: 22.09.16 Neueste Beiträge
Thanks for your input Alberto,

one of the shibboleth code contributors pointed me to a fork they did that supports Liferay 7 :
https://github.com/bruinen/liferay-shibboleth-plugin


This solved it for me.