Package org.exoplatform.webconferencing
Class UserInfo
java.lang.Object
org.exoplatform.webconferencing.IdentityInfo
org.exoplatform.webconferencing.UserInfo
- Direct Known Subclasses:
GuestInfo,ParticipantInfo
Represent eXo user as a conversation participant for calls.
Created by The eXo Platform SAS.
- Version:
- $Id: UserInfo.java 00000 Feb 23, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.exoplatform.services.log.LogThe Constant LOG.static final StringThe Constant TYPE_NAME.Fields inherited from class org.exoplatform.webconferencing.IdentityInfo
avatarLink, EMPTY, id, profileLink, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImAccount(String type, String id) Adds the user IM account.voidaddImAccount(UserInfo.IMInfo... ims) Adds the user IM account(s).Gets the client id.Gets the first name.getImAccount(String type) Gets the IM accounts by type.Gets the im accounts.Gets the last name.getState()Gets the state.getType()Gets the identity type.booleanhasImAccount(String type) Checks for IM account associated with the user.booleanhasSameClientId(String clientId) Checks for same client id.booleanisGroup()Checks if it is a group.voidsetClientId(String clientId) Sets the client id.voidSets the state.Methods inherited from class org.exoplatform.webconferencing.IdentityInfo
equals, getAvatarLink, getId, getProfileLink, getTitle, hashCode, setAvatarLink, setProfileLink
-
Field Details
-
TYPE_NAME
The Constant TYPE_NAME. -
LOG
protected static final org.exoplatform.services.log.Log LOGThe Constant LOG.
-
-
Constructor Details
-
UserInfo
Instantiates a new user info.- Parameters:
userId- the user id in the systemfirstName- the first typelastName- the last type
-
-
Method Details
-
isGroup
public boolean isGroup()Checks if it is a group.- Specified by:
isGroupin classIdentityInfo- Returns:
- true, if is a group
-
getType
Gets the identity type.- Specified by:
getTypein classIdentityInfo- Returns:
- the type
-
getFirstName
Gets the first name.- Returns:
- the firstName
-
getLastName
Gets the last name.- Returns:
- the lastName
-
getImAccounts
Gets the im accounts.- Returns:
- the map of user instant messaging accounts: key is a type, value is a collection of
UserInfo.IMInfo
-
addImAccount
Adds the user IM account.- Parameters:
type- the IM type type (e.g.gtalk)id- the IM id- Returns:
- the added IM info
-
addImAccount
Adds the user IM account(s). Note that if IM with some type already added an another one will be skipped.- Parameters:
ims- the IM account(s) to add to the user profile
-
hasImAccount
Checks for IM account associated with the user.- Parameters:
type- the IM account type- Returns:
true, if successful
-
getImAccount
Gets the IM accounts by type.- Parameters:
type- the type- Returns:
- the IM accounts
-
getState
Gets the state.- Returns:
- the state
-
setState
Sets the state.- Parameters:
state- the new state
-
getClientId
Gets the client id.- Returns:
- the clientId
-
setClientId
Sets the client id.- Parameters:
clientId- the clientId to set
-
hasSameClientId
Checks for same client id.- Parameters:
clientId- the client id- Returns:
- true, if this user has same client ID (it is set and the same)
-