Package org.bigbluebutton.api.domain

Examples of org.bigbluebutton.api.domain.Meeting


      // app can reuse the external meeting id.
      long createTime = System.currentTimeMillis();
      internalMeetingId = internalMeetingId + '-' + new Long(createTime).toString();
     
      // Create the meeting with all passed in parameters.
      Meeting meeting = new Meeting.Builder(externalMeetingId, internalMeetingId, createTime)
          .withName(meetingName).withMaxUsers(maxUsers).withModeratorPass(modPass)
          .withViewerPass(viewerPass).withRecording(record).withDuration(meetingDuration)
          .withLogoutUrl(logoutUrl).withTelVoice(telVoice).withWebVoice(webVoice).withDialNumber(dialNumber)
          .withDefaultAvatarURL(defaultAvatarURL)
          .withMetadata(meetingInfo).withWelcomeMessage(welcomeMessage).build();
     
      String configXML = getDefaultConfigXML();
      meeting.storeConfig(true, configXML);
     
      return meeting;
  }
View Full Code Here


  }
 
  public void endMeeting(String meetingId) {   
    messagingService.endMeeting(meetingId);
   
    Meeting m = getMeeting(meetingId);
    if (m != null) {
      m.setForciblyEnded(true);
      if (removeMeetingWhenEnded)
      {
        if (m.isRecord()) {
          log.debug("[" + m.getInternalId() + "] is recorded. Process it.");           
          processRecording(m.getInternalId());
        }
        meetings.remove(m.getInternalId());
      }
    }else{
      log.debug("endMeeting - meeting doesn't exist: " + meetingId);
    }
  }
View Full Code Here

      log.debug("endMeeting - meeting doesn't exist: " + meetingId);
    }
  }
 
  public void addUserCustomData(String meetingId, String userID, Map<String,String> userCustomData){
    Meeting m = getMeeting(meetingId);
    if(m != null){
      m.addUserCustomData(userID,userCustomData);
    }
  }
View Full Code Here

   *
   */
  private class MeetingMessageListener implements MessageListener {
    @Override
    public void meetingStarted(String meetingId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        if(m.getStartTime() == 0){
          log.debug("Setting meeting " + meetingId + " started time");
          m.setStartTime(System.currentTimeMillis());
        }else{
          log.debug("The meeting " + meetingId + " has been started again...");
        }
        m.setEndTime(0);
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void meetingEnded(String meetingId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        log.debug("Setting meeting " + meetingId + " end time");
        m.setEndTime(System.currentTimeMillis());
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void userJoined(String meetingId, String internalUserId, String externalUserId, String name, String role) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = new User(internalUserId, externalUserId, name, role);
        m.userJoined(user);
        log.debug("New user in meeting " + meetingId + ":" + user.getFullname());
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void userLeft(String meetingId, String internalUserId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = m.userLeft(internalUserId);
        if(user != null){
          log.debug("User removed from meeting " + meetingId + ":" + user.getFullname());
          return;
        }
        log.warn("The participant " + internalUserId + " doesn't exist in the meeting " + meetingId);
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }
   
    @Override
    public void updatedStatus(String meetingId, String internalUserId, String status, String value) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = m.getUserById(internalUserId);
        if(user != null){
          user.setStatus(status, value);
          log.debug("Setting new status value in meeting " + meetingId + " for participant:"+user.getFullname());
          return;
        }
View Full Code Here

  }
 
  public void endMeeting(String meetingId) {   
    messagingService.endMeeting(meetingId);
   
    Meeting m = getMeeting(meetingId);
    if (m != null) {
      m.setForciblyEnded(true);
      if (removeMeetingWhenEnded)
      {
        if (m.isRecord()) {
          log.debug("[" + m.getInternalId() + "] is recorded. Process it.");           
          processRecording(m.getInternalId());
        }
        meetings.remove(m.getInternalId());
      }
    }else{
      log.debug("endMeeting - meeting doesn't exist: " + meetingId);
    }
  }
View Full Code Here

      log.debug("endMeeting - meeting doesn't exist: " + meetingId);
    }
  }
 
  public void addUserCustomData(String meetingId, String userID, Map<String,String> userCustomData){
    Meeting m = getMeeting(meetingId);
    if(m != null){
      m.addUserCustomData(userID,userCustomData);
    }
  }
View Full Code Here

TOP

Related Classes of org.bigbluebutton.api.domain.Meeting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.