Friday, April 2, 2010

Retrieving Logged in user id.

HI,

Let's say that I'm logged in and I'm connected (CollectionNodeEvent.SYNCHRONIZATION_CHANGE dispatched) and in the CollectionNodeEvent.SYNCHRONIZATION_CHANGE event handler I have a for loop to read the users which reading the cs.userManager.userCollection Arraycollection.

And each item (UserDescriptor) has userid and my question is how do I find the userid for the user I just logged in as when only information i have is user name / pass and I don't have any field in UserDescriptor object that matches up?

Thanks for your help.

Retrieving Logged in user id.

Hi Babo,

UserManager.myUserID is the hookup you need - from there you can query the full descriptor using UserManager.getUserDescriptor(p_userID).

nigel

No comments:

Post a Comment