フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Subhasis Roy
How to create a post login hook in liferay 6.1?
2014/05/21 4:37
答え

Subhasis Roy

ランク: Regular Member

投稿: 223

参加年月日: 2012/01/19

最近の投稿

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?
2012/07/04 0:05
答え

Jitendra Rajput

ランク: Liferay Master

投稿: 657

参加年月日: 2011/01/07

最近の投稿

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?
2012/07/05 0:11
答え

Subhasis Roy

ランク: Regular Member

投稿: 223

参加年月日: 2012/01/19

最近の投稿

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?
Karel Teniska
RE: How to create a post login hook in liferay 6.1?
2012/07/05 1:11
答え

Karel Teniska

ランク: Junior Member

投稿: 68

参加年月日: 2012/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
Miguel Ángel Júlvez
RE: How to create a post login hook in liferay 6.1?
2012/09/19 7:22
答え

Miguel Ángel Júlvez

ランク: Junior Member

投稿: 56

参加年月日: 2011/03/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?
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
2012/09/20 21:28
答え

Subhasis Roy

ランク: Regular Member

投稿: 223

参加年月日: 2012/01/19

最近の投稿

yes. it worked.
Bryan Kim
RE: How to create a post login hook in liferay 6.1?
2013/02/26 15:40
答え

Bryan Kim

ランク: New Member

投稿: 3

参加年月日: 2013/01/17

最近の投稿

What was the solution for this?
Subhasis Roy
RE: How to create a post login hook in liferay 6.1?
2014/03/19 4:56
答え

Subhasis Roy

ランク: Regular Member

投稿: 223

参加年月日: 2012/01/19

最近の投稿

For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks
画像の固定

添付ファイル: LiferryHook.jpg (86.9k), Test-hook.zip (10.8k)
Hu Jun
RE: How to create a post login hook in liferay 6.1?
2014/03/18 19:03
答え

Hu Jun

ランク: New Member

投稿: 1

参加年月日: 2014/03/18

最近の投稿

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