public class User extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
tenantDomain |
protected String |
userName |
protected String |
userStoreDomain |
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
static User |
build(org.apache.axiom.om.OMElement userOM)
Returns a User instance populated from the given OMElement
The OMElement is of the form below
|
boolean |
equals(Object o) |
String |
getTenantDomain()
Returns the tenant domain of the user
|
static User |
getUserFromUserName(String username)
Returns a User object constructed from fully qualified username
|
String |
getUserName()
Returns the username of the user
|
String |
getUserStoreDomain()
Returns the user store domain of the user
|
int |
hashCode() |
void |
setTenantDomain(String tenantDomain)
Sets the tenant domain of the user
|
void |
setUserName(String userName)
Sets the username of the user
|
void |
setUserStoreDomain(String userStoreDomain)
Sets the user store domain of the user
|
String |
toString() |
protected String tenantDomain
protected String userStoreDomain
protected String userName
public static User build(org.apache.axiom.om.OMElement userOM)
userOM - OMElement to populate userpublic String getTenantDomain()
public void setTenantDomain(String tenantDomain)
tenantDomain - tenant domain of the userpublic String getUserStoreDomain()
public void setUserStoreDomain(String userStoreDomain)
userStoreDomain - user store domain of the userpublic String getUserName()
public void setUserName(String userName)
userName - public static User getUserFromUserName(String username)
username - Fully qualified usernameIllegalArgumentExceptionCopyright © 2016 WSO2. All rights reserved.