留言板

How to create a post login hook in liferay 6.1?

thumbnail
Subhasis Roy,修改在11 年前。

How to create a post login hook in liferay 6.1?

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
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.
thumbnail
Jitendra Rajput,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
In 6.1 you can do this with by over riding portal.properties ..
<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
thumbnail
Subhasis Roy,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
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 Vašek,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

Junior Member 帖子: 68 加入日期: 12-6-26 最近的帖子
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
thumbnail
Miguel Ángel Júlvez,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

Junior Member 帖子: 63 加入日期: 11-3-29 最近的帖子
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?
thumbnail
Subhasis Roy,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
yes. it worked.
Bryan Kim,修改在11 年前。

RE: How to create a post login hook in liferay 6.1?

New Member 帖子: 3 加入日期: 13-1-17 最近的帖子
What was the solution for this?
Hu Jun,修改在10 年前。

RE: How to create a post login hook in liferay 6.1?

New Member 发布: 1 加入日期: 14-3-19 最近的帖子
can you tell me how to solution for it? thank you very much!
thumbnail
Subhasis Roy,修改在10 年前。

RE: How to create a post login hook in liferay 6.1?

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks