Class CallInfo
java.lang.Object
org.exoplatform.webconferencing.CallInfo
Created by The eXo Platform SAS.
- Version:
- $Id: CallInfo.java 00000 Jun 19, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe Class describing a CallInfo with simplified (POJO) fields for consumption by clients. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe user who started the call and alerted its participants.protected DateThe end date.protected final StringThe id.protected StringThe invite id.protected DateThe last date.protected static final org.exoplatform.services.log.LogThe Constant LOG.protected final Set<OriginInfo> The origins.protected final IdentityInfoThe owner.The participants.protected final StringThe provider type.protected DateThe start date.protected StringThe state.protected final StringThe title. -
Constructor Summary
ConstructorsConstructorDescriptionCallInfo(String id, String title, IdentityInfo owner, String providerType) Instantiates a new call info. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrigin(OriginInfo origin) Adds the origin.voidaddOrigins(Collection<OriginInfo> origins) Adds the origins.voidaddParticipant(UserInfo part) Adds the participant.voidaddParticipants(Collection<UserInfo> parts) Adds the participants.Gets the user who started the call and alerted its participants.Gets the end date.getId()Gets the id.Gets the invite id.Gets the last use date.Gets the origins (direct users and groups involved in the call).getOwner()Gets the owner.Gets the participants (actual users for the call).Gets the provider type.Gets the start date.getState()Gets the state.getTitle()Gets the title.voidremoveParticipant(UserInfo part) Removes the participant.voidremoveParticipants(Collection<UserInfo> parts) Removes the participants.voidsetCallerId(String callerId) Sets the user who started the call and alerted its participants.voidsetEndDate(Date endDate) Sets the end date.voidsetInviteId(String inviteId) Sets the invite id.voidsetLastDate(Date lastDate) Sets the last use date.voidsetStartDate(Date startDate) Sets the start date.voidSets the state.toJSON()Return JSON representation of this call.
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOGThe Constant LOG. -
id
The id. -
title
The title. -
participants
-
origins
The origins. -
owner
The owner. -
providerType
The provider type. -
state
The state. -
lastDate
The last date. -
startDate
The start date. -
endDate
The end date. -
inviteId
The invite id. -
callerId
The user who started the call and alerted its participants.
-
-
Constructor Details
-
CallInfo
Instantiates a new call info.- Parameters:
id- the idtitle- the titleowner- the ownerproviderType- the provider type
-
-
Method Details
-
getId
-
getTitle
-
getParticipants
-
getOrigins
Gets the origins (direct users and groups involved in the call).- Returns:
- the origins
-
addOrigins
Adds the origins.- Parameters:
origins- the origins
-
addOrigin
-
getOwner
-
getProviderType
-
addParticipants
Adds the participants. This method will add only if no such participant already exists (likeSetworks).- Parameters:
parts- the parts
-
addParticipant
-
removeParticipants
Removes the participants.- Parameters:
parts- the parts
-
removeParticipant
-
getState
-
setState
-
getLastDate
-
setLastDate
Sets the last use date.- Parameters:
lastDate- the date to set
-
getCallerId
Gets the user who started the call and alerted its participants.- Returns:
- the caller id, or
nullwhen the last start alerted nobody
-
setCallerId
Sets the user who started the call and alerted its participants.- Parameters:
callerId- the caller id
-
getInviteId
-
setInviteId
Sets the invite id.- Parameters:
inviteId- the new invite id
-
getStartDate
-
setStartDate
Sets the start date.- Parameters:
startDate- the startDate to set
-
getEndDate
-
setEndDate
-
toJSON
Return JSON representation of this call.- Returns:
- the string
- Throws:
org.exoplatform.ws.frameworks.json.impl.JsonException- the json exception
-