[
http://jira.xwiki.org/jira/browse/XWIKI-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marius Dumitru Florea updated XWIKI-2088:
-----------------------------------------
Attachment: XWIKI-2088.diff.txt
The patch for Solution 3.
> 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
> Attachments: XWIKI-2088.diff.txt
>
>
> 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