[ 
http://jira.xwiki.org/jira/browse/XWIKI-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22422
 ] 

Sergiu Dumitriu commented on XWIKI-2088:
----------------------------------------

-1

I'd rather add it to api.User, instead of api.XWiki

> Add a method to retrieve the e-mail address of a user
> -----------------------------------------------------
>
>                 Key: XWIKI-2088
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2088
>             Project: XWiki Core
>          Issue Type: New Feature
>          Components: APIs
>    Affects Versions: 1.1.2
>         Environment: Any
>            Reporter: Marius Dumitru Florea
>         Assigned To: Marius Dumitru Florea
>            Priority: Minor
>
> Which is the simplest way of getting  the email address of a wiki user? I 
> know of:
> Solution 1 (slower, but just one line):
> $xwiki.getUserName($someUserName, "$email", false)
> Solution 2 (faster, but 3 lines):
> $userdoc = $xwiki.getDocument($someUserName)
> $userdoc.use("XWiki.XWikiUsers")
> $userdoc.getValue("email")
> I'd preffer:
> Solution 3 (faster and just one line):
> $xwiki.getUserEmail($someUserName)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to