public class CallInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CallInfo.CallView
The Class describing a CallInfo with simplified (POJO) fields for consumption by clients.
|
| Modifier and Type | Field and Description |
|---|---|
protected Date |
endDate
The end date.
|
protected String |
id
The id.
|
protected String |
inviteId
The invite id.
|
protected Date |
lastDate
The last date.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected Set<OriginInfo> |
origins
The origins.
|
protected IdentityInfo |
owner
The owner.
|
protected Set<UserInfo> |
participants
The participants.
|
protected String |
providerType
The provider type.
|
protected Date |
startDate
The start date.
|
protected String |
state
The state.
|
protected String |
title
The title.
|
| Constructor and Description |
|---|
CallInfo(String id,
String title,
IdentityInfo owner,
String providerType)
Instantiates a new call info.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOrigin(OriginInfo origin)
Adds the origin.
|
void |
addOrigins(Collection<OriginInfo> origins)
Adds the origins.
|
void |
addParticipant(UserInfo part)
Adds the participant.
|
void |
addParticipants(Collection<UserInfo> parts)
Adds the participants.
|
Date |
getEndDate()
Gets the end date.
|
String |
getId()
Gets the id.
|
String |
getInviteId()
Gets the invite id.
|
Date |
getLastDate()
Gets the last use date.
|
Set<OriginInfo> |
getOrigins()
Gets the origins (direct users and groups involved in the call).
|
IdentityInfo |
getOwner()
Gets the owner.
|
Set<UserInfo> |
getParticipants()
Gets the participants (actual users for the call).
|
String |
getProviderType()
Gets the provider type.
|
Date |
getStartDate()
Gets the start date.
|
String |
getState()
Gets the state.
|
String |
getTitle()
Gets the title.
|
void |
removeParticipant(UserInfo part)
Removes the participant.
|
void |
removeParticipants(Collection<UserInfo> parts)
Removes the participants.
|
void |
setEndDate(Date endDate)
Sets the end date.
|
void |
setInviteId(String inviteId)
Sets the invite id.
|
void |
setLastDate(Date lastDate)
Sets the last use date.
|
void |
setStartDate(Date startDate)
Sets the start date.
|
void |
setState(String state)
Sets the state.
|
String |
toJSON()
Return JSON representation of this call.
|
protected static final org.exoplatform.services.log.Log LOG
protected final String id
protected final String title
protected final Set<OriginInfo> origins
protected final IdentityInfo owner
protected final String providerType
protected String state
protected Date lastDate
protected Date startDate
protected Date endDate
protected String inviteId
public CallInfo(String id, String title, IdentityInfo owner, String providerType)
id - the idtitle - the titleowner - the ownerproviderType - the provider typepublic String getId()
public String getTitle()
null.nullpublic Set<UserInfo> getParticipants()
public Set<OriginInfo> getOrigins()
public void addOrigins(Collection<OriginInfo> origins)
origins - the originspublic void addOrigin(OriginInfo origin)
origin - the originpublic IdentityInfo getOwner()
public String getProviderType()
public void addParticipants(Collection<UserInfo> parts)
Set works).parts - the partspublic void addParticipant(UserInfo part)
Set works).part - the partpublic void removeParticipants(Collection<UserInfo> parts)
parts - the partspublic void removeParticipant(UserInfo part)
part - the partpublic String getState()
public void setState(String state)
state - the new statepublic Date getLastDate()
public void setLastDate(Date lastDate)
lastDate - the date to setpublic String getInviteId()
public void setInviteId(String inviteId)
inviteId - the new invite idpublic Date getStartDate()
public void setStartDate(Date startDate)
startDate - the startDate to setpublic Date getEndDate()
public void setEndDate(Date endDate)
endDate - the endDate to setpublic String toJSON() throws org.exoplatform.ws.frameworks.json.impl.JsonException
org.exoplatform.ws.frameworks.json.impl.JsonException - the json exceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.