Fórumok
How to create a post login hook in liferay 6.1?
Subhasis Roy, módosítva 11 év-val korábban
How to create a post login hook in liferay 6.1?
Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
Hi,
In liferay 6.0 we used to define hook inside liferay-hook.xml using <event> tag.
But I found that its not working for liferay 6.1.
liferay 6.0 code:
<hook>
<event>
<event-class>com.test.sample.MyAction</event-class>
<event-type>login.events.post</event-type>
</event>
</hook>
Can anyone please tell me how and where to define a post login hook(login.events.post) in liferay 6.1 version.
In liferay 6.0 we used to define hook inside liferay-hook.xml using <event> tag.
But I found that its not working for liferay 6.1.
liferay 6.0 code:
<hook>
<event>
<event-class>com.test.sample.MyAction</event-class>
<event-type>login.events.post</event-type>
</event>
</hook>
Can anyone please tell me how and where to define a post login hook(login.events.post) in liferay 6.1 version.
Jitendra Rajput, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Liferay Master Bejegyzések: 875 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
In 6.1 you can do this with by over riding portal.properties ..
Specify above property in your liferay-hook.xml
and place portal.properties inside your hook and place property related to your event .
<portal-properties>portal.properties</portal-properties>
Specify above property in your liferay-hook.xml
and place portal.properties inside your hook and place property related to your event .
login.events.post=com.test.sample.MyAction
Subhasis Roy, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
thanks.
But this is not working when I have integrated with CAS.
I logged in using CAS and expects my post login hook to interfere after i logged in, but hook is not working int his case.
For simple liferay login(withou CAS) , hook is working.
Can any one have any idea about this?
But this is not working when I have integrated with CAS.
I logged in using CAS and expects my post login hook to interfere after i logged in, but hook is not working int his case.
For simple liferay login(withou CAS) , hook is working.
Can any one have any idea about this?
Petr Vašek, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Junior Member Bejegyzések: 68 Csatlakozás dátuma: 2012.06.26. Legújabb bejegyzések
Hi Roy, You can use EXT plugin, i think it is very easy way to solution.
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/developing-an-ext-plugin
Petr
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/developing-an-ext-plugin
Petr
Miguel Ángel Júlvez, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Junior Member Bejegyzések: 63 Csatlakozás dátuma: 2011.03.29. Legújabb bejegyzések
Hi Subhass,
did you get a solution?
Regards
did you get a solution?
Regards
Subhasis Roy:
thanks.
But this is not working when I have integrated with CAS.
I logged in using CAS and expects my post login hook to interfere after i logged in, but hook is not working int his case.
For simple liferay login(withou CAS) , hook is working.
Can any one have any idea about this?
Subhasis Roy, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
yes. it worked.
Bryan Kim, módosítva 11 év-val korábban
RE: How to create a post login hook in liferay 6.1?
New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.01.17. Legújabb bejegyzések
What was the solution for this?
Hu Jun, módosítva 10 év-val korábban
RE: How to create a post login hook in liferay 6.1?
New Member Bejegyzés: 1 Csatlakozás dátuma: 2014.03.19. Legújabb bejegyzések
can you tell me how to solution for it? thank you very much!
Subhasis Roy, módosítva 10 év-val korábban
RE: How to create a post login hook in liferay 6.1?
Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
For JSP hook we can follow as mentioned below.
Refer to attached sample JSP hooks
Refer to attached sample JSP hooks
Mellékletek: