public class UserInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UserInfo.IMInfo
The Class IMInfo.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
| Constructor and Description |
|---|
UserInfo(String userName,
String firstName,
String lastName)
Instantiates a new user info.
|
| Modifier and Type | Method and Description |
|---|---|
UserInfo.IMInfo |
addImAccount(String type,
String id)
Adds the user IM account.
|
void |
addImAccount(UserInfo.IMInfo... ims)
Adds the user IM account(s).
|
String |
getFirstName()
Gets the first name.
|
Collection<UserInfo.IMInfo> |
getImAccount(String type)
Gets the IM accounts by type.
|
Map<String,Collection<UserInfo.IMInfo>> |
getImAccounts()
Gets the im accounts.
|
String |
getLastName()
Gets the last name.
|
String |
getName()
Gets the name.
|
boolean |
hasImAccount(String type)
Checks for IM account associated with the user.
|
public String getName()
public String getFirstName()
public String getLastName()
public Map<String,Collection<UserInfo.IMInfo>> getImAccounts()
UserInfo.IMInfopublic UserInfo.IMInfo addImAccount(String type, String id)
type - the IM type type (e.g. gtalk)id - the IM idpublic void addImAccount(UserInfo.IMInfo... ims)
ims - the IM account(s) to add to the user profilepublic boolean hasImAccount(String type)
type - the IM account typetrue, if successfulpublic Collection<UserInfo.IMInfo> getImAccount(String type)
type - the typeCopyright © 2003–2017 eXo Platform SAS. All rights reserved.