Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Subhasis Roy
How to create a post login hook in liferay 6.1?
21. Mai 2014 04:37
Antwort

Subhasis Roy

Rang: Expert

Nachrichten: 284

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

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. Juli 2012 00:05
Antwort

Jitendra Rajput

Rang: Liferay Master

Nachrichten: 858

Eintrittsdatum: 7. Januar 2011

Neue Beiträge

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. Juli 2012 00:11
Antwort

Subhasis Roy

Rang: Expert

Nachrichten: 284

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

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. Juli 2012 01:11
Antwort

Petr Vasek

Rang: Junior Member

Nachrichten: 68

Eintrittsdatum: 26. Juni 2012

Neue Beiträge

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. September 2012 07:22
Antwort

Miguel Ángel Júlvez

Rang: Junior Member

Nachrichten: 58

Eintrittsdatum: 29. März 2011

Neue Beiträge

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. September 2012 21:28
Antwort

Subhasis Roy

Rang: Expert

Nachrichten: 284

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

yes. it worked.
Bryan Kim
RE: How to create a post login hook in liferay 6.1?
26. Februar 2013 15:40
Antwort

Bryan Kim

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 17. Januar 2013

Neue Beiträge

What was the solution for this?
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
19. März 2014 04:56
Antwort

Subhasis Roy

Rang: Expert

Nachrichten: 284

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks
Anhang

Anhänge: LiferryHook.jpg (86,9k), Test-hook.zip (10,8k)
Hu Jun
RE: How to create a post login hook in liferay 6.1?
18. März 2014 19:03
Antwort

Hu Jun

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 18. März 2014

Neue Beiträge

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