Package org.bigbluebutton.api.domain

Examples of org.bigbluebutton.api.domain.User


    @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


    @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);
        return;
      }
View Full Code Here

   
    @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;
        }
        log.warn("The participant " + internalUserId + " doesn't exist in the meeting " + meetingId);
        return;
      }
View Full Code Here

    @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

    @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);
        return;
      }
View Full Code Here

   
    @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;
        }
        log.warn("The participant " + internalUserId + " doesn't exist in the meeting " + meetingId);
        return;
      }
View Full Code Here

  private void userJoined(UserJoined message) {
    log.debug("User joined in meeting[{}]", message.meetingId);
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      User user = new User(message.userId, message.externalUserId, message.name, message.role);
      m.userJoined(user);
      log.info("New user in meeting [" + message.meetingId + "] user [" + user.getFullname() + "]");
     
      Map<String, Object> logData = new HashMap<String, Object>();
      logData.put("meetingId", m.getInternalId());
      logData.put("externalMeetingId", m.getExternalId());
      logData.put("name", m.getName());
      logData.put("userId", message.userId);
      logData.put("externalUserId", user.getExternalUserId());
      logData.put("username", user.getFullname());
      logData.put("role", user.getRole());     
      logData.put("event", "user_joined_meeting");
      logData.put("description", "User had joined the meeting.");
     
      Gson gson = new Gson();
      String logStr =  gson.toJson(logData);
View Full Code Here

  private void userLeft(UserLeft message) {
    log.debug("User left from meeting[{}]", message.meetingId);
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      User user = m.userLeft(message.userId);
      if(user != null){
        log.info("User removed from meeting [" + message.meetingId + "] user [" + user.getFullname() + "]");
       
        Map<String, Object> logData = new HashMap<String, Object>();
        logData.put("meetingId", m.getInternalId());
        logData.put("externalMeetingId", m.getExternalId());
        logData.put("name", m.getName());
        logData.put("userId", message.userId);
        logData.put("externalUserId", user.getExternalUserId());
        logData.put("username", user.getFullname());
        logData.put("role", user.getRole());     
        logData.put("event", "user_joined_meeting");
        logData.put("description", "User had joined the meeting.");
       
        Gson gson = new Gson();
        String logStr =  gson.toJson(logData);
View Full Code Here

  }
   
  private void updatedStatus(UserStatusChanged message) {
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      User user = m.getUserById(message.userId);
      if(user != null){
        user.setStatus(message.status, message.value);
        log.info("Setting new status value in meeting " + message.meetingId + " for participant:" + user.getFullname());
        return;
      }
      log.warn("The participant " + message.userId + " doesn't exist in the meeting " + message.meetingId);
      return;
    }
View Full Code Here

TOP

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

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.