Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Subhasis Roy
How to create a post login hook in liferay 6.1?
21 de Maio de 2014 04:37
Resposta

Subhasis Roy

Ranking: Expert

Mensagens: 287

Data de entrada: 19 de Janeiro de 2012

Mensagens recentes

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 de Julho de 2012 00:05
Resposta

Jitendra Rajput

Ranking: Liferay Master

Mensagens: 875

Data de entrada: 7 de Janeiro de 2011

Mensagens recentes

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 de Julho de 2012 00:11
Resposta

Subhasis Roy

Ranking: Expert

Mensagens: 287

Data de entrada: 19 de Janeiro de 2012

Mensagens recentes

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 de Julho de 2012 01:11
Resposta

Petr Vasek

Ranking: Junior Member

Mensagens: 68

Data de entrada: 26 de Junho de 2012

Mensagens recentes

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 de Setembro de 2012 07:22
Resposta

Miguel Ángel Júlvez

Ranking: Junior Member

Mensagens: 61

Data de entrada: 29 de Março de 2011

Mensagens recentes

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 de Setembro de 2012 21:28
Resposta

Subhasis Roy

Ranking: Expert

Mensagens: 287

Data de entrada: 19 de Janeiro de 2012

Mensagens recentes

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

Bryan Kim

Ranking: New Member

Mensagens: 3

Data de entrada: 17 de Janeiro de 2013

Mensagens recentes

What was the solution for this?
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
19 de Março de 2014 04:56
Resposta

Subhasis Roy

Ranking: Expert

Mensagens: 287

Data de entrada: 19 de Janeiro de 2012

Mensagens recentes

For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks
Anexo

Anexos: LiferryHook.jpg (86,9k), Test-hook.zip (10,8k)
Hu Jun
RE: How to create a post login hook in liferay 6.1?
18 de Março de 2014 19:03
Resposta

Hu Jun

Ranking: New Member

Mensagens: 1

Data de entrada: 18 de Março de 2014

Mensagens recentes

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!