public class UserInfo extends IdentityInfo
| 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.
|
static String |
TYPE_NAME
The Constant TYPE_NAME.
|
avatarLink, EMPTY, id, profileLink, title| Constructor and Description |
|---|
UserInfo(String userId,
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 |
getClientId()
Gets the client id.
|
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 |
getState()
Gets the state.
|
String |
getType()
Gets the identity type.
|
boolean |
hasImAccount(String type)
Checks for IM account associated with the user.
|
boolean |
hasSameClientId(String clientId)
Checks for same client id.
|
boolean |
isGroup()
Checks if it is a group.
|
void |
setClientId(String clientId)
Sets the client id.
|
void |
setState(String state)
Sets the state.
|
getAvatarLink, getId, getProfileLink, getTitle, setAvatarLink, setProfileLinkpublic static final String TYPE_NAME
protected static final org.exoplatform.services.log.Log LOG
public boolean isGroup()
isGroup in class IdentityInfopublic String getType()
getType in class IdentityInfopublic 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 typepublic String getState()
public void setState(String state)
state - the new statepublic String getClientId()
public void setClientId(String clientId)
clientId - the clientId to setpublic boolean hasSameClientId(String clientId)
clientId - the client idCopyright © 2003–2018 eXo Platform SAS. All rights reserved.