@Unstable public interface User extends Comparable<User>
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Check if the returned user profile actually exists or not.
|
Object |
getAttribute(String attributeName)
Get the value of an attribute defined for the user.
|
String |
getId()
An identifier which can be used internally for identifying the user.
|
String |
getName()
The real name of the user.
|
org.xwiki.model.reference.DocumentReference |
getProfileDocument()
If the user has an associated wiki document where their profile can be seen, return a reference to it.
|
URI |
getProfileURI()
If the user has an associated URI where their profile can be seen, return it.
|
String |
getUsername()
The username used for identifying the user in the form.
|
compareToboolean exists()
true if the user profile is valid (e.g. the profile wiki document exists for a wiki user)String getId()
String getUsername()
String getName()
org.xwiki.model.reference.DocumentReference getProfileDocument()
null is returned.null otherwiseURI getProfileURI()
null
is returned.null otherwiseObject getAttribute(String attributeName)
attributeName - the name of the attribute to retrievenull otherwiseCopyright © 2011–2016 University of Toronto, Computational Biology Lab. All rights reserved.