Package org.exoplatform.webconferencing
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 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 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.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
The 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.
-
-
Constructor Details
-
CallInfo
Instantiates a new call info.- Parameters:
id- the idtitle- the titleowner- the ownerproviderType- the provider type
-
-
Method Details
-
getId
Gets the id.- Returns:
- the id
-
getTitle
Gets the title. Can benull.- Returns:
- the title or
null
-
getParticipants
Gets the participants (actual users for the call).- Returns:
- the participants
-
getOrigins
Gets the origins (direct users and groups involved in the call).- Returns:
- the origins
-
addOrigins
Adds the origins.- Parameters:
origins- the origins
-
addOrigin
Adds the origin.- Parameters:
origin- the origin
-
getOwner
Gets the owner.- Returns:
- the owner
-
getProviderType
Gets the provider type.- Returns:
- the provider type
-
addParticipants
Adds the participants. This method will add only if no such participant already exists (likeSetworks).- Parameters:
parts- the parts
-
addParticipant
Adds the participant. This method will add only if no such participant already exists (likeSetworks).- Parameters:
part- the part
-
removeParticipants
Removes the participants.- Parameters:
parts- the parts
-
removeParticipant
Removes the participant.- Parameters:
part- the part
-
getState
Gets the state.- Returns:
- the state
-
setState
Sets the state.- Parameters:
state- the new state
-
getLastDate
Gets the last use date.- Returns:
- the lastDate
-
setLastDate
Sets the last use date.- Parameters:
lastDate- the date to set
-
getInviteId
Gets the invite id.- Returns:
- the invite id
-
setInviteId
Sets the invite id.- Parameters:
inviteId- the new invite id
-
getStartDate
Gets the start date.- Returns:
- the startDate
-
setStartDate
Sets the start date.- Parameters:
startDate- the startDate to set
-
getEndDate
Gets the end date.- Returns:
- the endDate
-
setEndDate
Sets the end date.- Parameters:
endDate- the endDate to set
-
toJSON
Return JSON representation of this call.- Returns:
- the string
- Throws:
org.exoplatform.ws.frameworks.json.impl.JsonException- the json exception
-