Jelmer,
Thanks for taking a crack. I think I follow what you are saying by I am not totally sure. I do understand that the REAL USER is in fact the credentials you entered to log into the system -- so as a result, the information I see in the LIVE USERS portlet is actually REAL USER information. Assume I have this though.
+ user #1 = Jack (id:1234)
+ user #2 = Jill (id:5678)
+ Jack has delegated authority to act on his behalf (impersonate him) to Jill.
+ Jill logs into the system
+ LiveUsers shows me that Jill has an active session (Jill is the real user so this is fine)
+ Jill impersonates Jack -- so now her REAL USER ID is the one for Jill (5678), but her USER ID is the one for Jack (1234)
+ Jack now tried to log in
Looping through the User Tracker, I need to be able to detect that although Jill is logged into the system, she is actually acting on behalf of Jack, thus not allowing him to log into the system. The user ID I get from the Session that I retrieve using HttpSession userSession = PortalSessionContext.get( tracker.getSessionId() ); is the one that shows Jill as logged in.
So how do I use her Session, to get the ThemeDisplay object to determine her active user id in place of her real user id? Or is there a way other than the ThemeDisplay to do this?
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.