Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Subhasis Roy
How to create a post login hook in liferay 6.1?
21 maggio 2014 4.37
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 287

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

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.
Jitendra Rajput
RE: How to create a post login hook in liferay 6.1?
4 luglio 2012 0.05
Risposta

Jitendra Rajput

Punteggio: Liferay Master

Messaggi: 875

Data di Iscrizione: 7 gennaio 2011

Messaggi recenti

In 6.1 you can do this with by over riding portal.properties ..
1<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 .

1login.events.post=com.test.sample.MyAction
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
5 luglio 2012 0.11
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 287

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

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?
Petr Vasek
RE: How to create a post login hook in liferay 6.1?
5 luglio 2012 1.11
Risposta

Petr Vasek

Punteggio: Junior Member

Messaggi: 68

Data di Iscrizione: 26 giugno 2012

Messaggi recenti

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
Miguel Ángel Júlvez
RE: How to create a post login hook in liferay 6.1?
19 settembre 2012 7.22
Risposta

Miguel Ángel Júlvez

Punteggio: Junior Member

Messaggi: 61

Data di Iscrizione: 29 marzo 2011

Messaggi recenti

Hi Subhass,

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
RE: How to create a post login hook in liferay 6.1?
20 settembre 2012 21.28
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 287

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

yes. it worked.
Bryan Kim
RE: How to create a post login hook in liferay 6.1?
26 febbraio 2013 15.40
Risposta

Bryan Kim

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 17 gennaio 2013

Messaggi recenti

What was the solution for this?
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
19 marzo 2014 4.56
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 287

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks
Allegato

Allegati: LiferryHook.jpg (86,9k), Test-hook.zip (10,8k)
Hu Jun
RE: How to create a post login hook in liferay 6.1?
18 marzo 2014 19.03
Risposta

Hu Jun

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 18 marzo 2014

Messaggi recenti

can you tell me how to solution for it? thank you very much!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!