掲示板
How to create a post login hook in liferay 6.1?
11年前 に Subhasis Roy によって更新されました。
How to create a post login hook in liferay 6.1?
Expert 投稿: 275 参加年月日: 12/01/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.
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.
11年前 に Jitendra Rajput によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
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
11年前 に Subhasis Roy によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Expert 投稿: 275 参加年月日: 12/01/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?
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?
11年前 に Petr Vašek によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Junior Member 投稿: 68 参加年月日: 12/06/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
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/developing-an-ext-plugin
Petr
11年前 に Miguel Ángel Júlvez によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Junior Member 投稿: 63 参加年月日: 11/03/29 最新の投稿
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?
11年前 に Subhasis Roy によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Expert 投稿: 275 参加年月日: 12/01/20 最新の投稿
yes. it worked.
11年前 に Bryan Kim によって更新されました。
RE: How to create a post login hook in liferay 6.1?
New Member 投稿: 3 参加年月日: 13/01/17 最新の投稿
What was the solution for this?
10年前 に Hu Jun によって更新されました。
RE: How to create a post login hook in liferay 6.1?
New Member 投稿: 1 参加年月日: 14/03/19 最新の投稿
can you tell me how to solution for it? thank you very much!
10年前 に Subhasis Roy によって更新されました。
RE: How to create a post login hook in liferay 6.1?
Expert 投稿: 275 参加年月日: 12/01/20 最新の投稿
For JSP hook we can follow as mentioned below.
Refer to attached sample JSP hooks
Refer to attached sample JSP hooks