In my dataprovider, I am trying to check privileges to enable/disable functionality.
The VimPort offers me a function called hasPrivilegeOnEntity(). One of the parameters that it needs
is the "sessionID". In the documentation, I've found that I can use the vim25.UserSession.key for this value.
My Dataprovider gets a UserSessionService as a paramter to its constructor. From this UserSessionService,
I can retrieve the UserSession using the method getUserSession(). However this UserSession is a
vise.usersession.UserSession, and there is no "key" value defined. I thought I could use the clientID, but
this seems to be a different value than the sessionId which is expected for vimPort.hasPrivilegeOnEntity.
I always got the "false" on this call, and then I compared this clientID with the values I can see in the MOB for
the current session.
So then I tried to use the serviceContent.getSessionManager() - but I only get the ManagedObjectReference to the
sessionManager, and could not find a method in VimPortType to thet the sessionManager itself, or to retrieve the vim25.UserSession.
Can someone tell me how I can retrieve this sessionID?
thanks
Cathy