28 Nov
2014
28 Nov
'14
7:52 p.m.
From Marius:
3) Presumably the document reference captures the full location of the user's profile page. The DocumentReference API doesn't appear to have a page name accessor, so presumably to extract the user name I need to pull it out of userDoc.toString().
What information do you need precisely? The user alias (what the user uses to log in)? Or the user pretty name?
The user alias is the name of the user profile document.
bridge.getCurrentUserReference().getName()
I think this is what I need to do. I have a separate database which uses proxy authentication so that queries give different results based on the user (as a form of ACL). So I need the uid for the current user, which is mapped to the wiki alias. Many thanks, Bryn