Class CallInfo

java.lang.Object
org.exoplatform.webconferencing.CallInfo

public class CallInfo extends Object
Created by The eXo Platform SAS.
Version:
$Id: CallInfo.java 00000 Jun 19, 2017 pnedonosko $
Author:
Peter Nedonosko
  • Field Details

    • LOG

      protected static final org.exoplatform.services.log.Log LOG
      The Constant LOG.
    • id

      protected final String id
      The id.
    • title

      protected final String title
      The title.
    • participants

      protected final Set<UserInfo> participants
      The participants.
    • origins

      protected final Set<OriginInfo> origins
      The origins.
    • owner

      protected final IdentityInfo owner
      The owner.
    • providerType

      protected final String providerType
      The provider type.
    • state

      protected String state
      The state.
    • lastDate

      protected Date lastDate
      The last date.
    • startDate

      protected Date startDate
      The start date.
    • endDate

      protected Date endDate
      The end date.
    • inviteId

      protected String inviteId
      The invite id.
  • Constructor Details

    • CallInfo

      public CallInfo(String id, String title, IdentityInfo owner, String providerType)
      Instantiates a new call info.
      Parameters:
      id - the id
      title - the title
      owner - the owner
      providerType - the provider type
  • Method Details

    • getId

      public String getId()
      Gets the id.
      Returns:
      the id
    • getTitle

      public String getTitle()
      Gets the title. Can be null.
      Returns:
      the title or null
    • getParticipants

      public Set<UserInfo> getParticipants()
      Gets the participants (actual users for the call).
      Returns:
      the participants
    • getOrigins

      public Set<OriginInfo> getOrigins()
      Gets the origins (direct users and groups involved in the call).
      Returns:
      the origins
    • addOrigins

      public void addOrigins(Collection<OriginInfo> origins)
      Adds the origins.
      Parameters:
      origins - the origins
    • addOrigin

      public void addOrigin(OriginInfo origin)
      Adds the origin.
      Parameters:
      origin - the origin
    • getOwner

      public IdentityInfo getOwner()
      Gets the owner.
      Returns:
      the owner
    • getProviderType

      public String getProviderType()
      Gets the provider type.
      Returns:
      the provider type
    • addParticipants

      public void addParticipants(Collection<UserInfo> parts)
      Adds the participants. This method will add only if no such participant already exists (like Set works).
      Parameters:
      parts - the parts
    • addParticipant

      public void addParticipant(UserInfo part)
      Adds the participant. This method will add only if no such participant already exists (like Set works).
      Parameters:
      part - the part
    • removeParticipants

      public void removeParticipants(Collection<UserInfo> parts)
      Removes the participants.
      Parameters:
      parts - the parts
    • removeParticipant

      public void removeParticipant(UserInfo part)
      Removes the participant.
      Parameters:
      part - the part
    • getState

      public String getState()
      Gets the state.
      Returns:
      the state
    • setState

      public void setState(String state)
      Sets the state.
      Parameters:
      state - the new state
    • getLastDate

      public Date getLastDate()
      Gets the last use date.
      Returns:
      the lastDate
    • setLastDate

      public void setLastDate(Date lastDate)
      Sets the last use date.
      Parameters:
      lastDate - the date to set
    • getInviteId

      public String getInviteId()
      Gets the invite id.
      Returns:
      the invite id
    • setInviteId

      public void setInviteId(String inviteId)
      Sets the invite id.
      Parameters:
      inviteId - the new invite id
    • getStartDate

      public Date getStartDate()
      Gets the start date.
      Returns:
      the startDate
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the start date.
      Parameters:
      startDate - the startDate to set
    • getEndDate

      public Date getEndDate()
      Gets the end date.
      Returns:
      the endDate
    • setEndDate

      public void setEndDate(Date endDate)
      Sets the end date.
      Parameters:
      endDate - the endDate to set
    • toJSON

      public String toJSON() throws org.exoplatform.ws.frameworks.json.impl.JsonException
      Return JSON representation of this call.
      Returns:
      the string
      Throws:
      org.exoplatform.ws.frameworks.json.impl.JsonException - the json exception