Author Topic: Get CurrentCustomer  (Read 685 times)

ryan

  • Administrator
  • Sr. Member
  • *****
  • Posts: 205
    • View Profile
    • KonaKart Website
Re: Get CurrentCustomer
« Reply #15 on: November 03, 2011, 03:53:36 PM »
In this case you don't really need a third party application. What you need is for the KK Mgr to be able to call some Liferay service to check to see whether the user's session is still active or whether he has logged out from Liferay.

Manu

  • Jr. Member
  • **
  • Posts: 28
  • Logica, Lille Fr
    • View Profile
Re: Get CurrentCustomer
« Reply #16 on: November 04, 2011, 11:25:05 AM »
I'm totally lost  :'(

For the moment,  when my hook detects a login event, it calls my UserService class which call the eng.login() method and I get the sessionId. Like this :


I use all provided code (no SecurityManager and no LoginIntegration)


I don't know what I have to do with the sessionId to share it with KonaKart portlet. I've tried to put it in the HttpSession but i don't know where use it with the konakart portlet.

Every precise help will be appreciate. Do I have to use differents SecurityManager and LoginIntegration in my Liferay Hook and my KonaKart portlet (and so differents konakart_custom.jar) ? How to log in customer in the konakart portlet from the event in the hook ?

Sorry for all my posts  :-[