Examples of Meeting


Examples of org.bigbluebutton.api.domain.Meeting

    log.warn("The meeting [{}] doesn't exist", message.meetingId);
  }

  private void meetingEnded(MeetingEnded message) {
    log.debug("Meeting [{}] has ended.", message.meetingId);
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      long now = System.currentTimeMillis();
      log.debug("Meeting [{}] end time [{}].", message.meetingId, now);
      m.setEndTime(now);
     
      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("duration", m.getDuration());
      logData.put("record", m.isRecord());
      logData.put("event", "meeting_ended");
      logData.put("description", "Meeting has ended.");
     
      Gson gson = new Gson();
      String logStr =  gson.toJson(logData);
View Full Code Here

Examples of org.bigbluebutton.api.domain.Meeting

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

  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");
View Full Code Here

Examples of org.bigbluebutton.api.domain.Meeting

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

  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");
View Full Code Here

Examples of org.bigbluebutton.api.domain.Meeting

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

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).withAutoStartRecording(autoStartRec).withAllowStartStopRecording(allowStartStoptRec)
          .withMetadata(meetingInfo).withWelcomeMessage(welcomeMessage).build();
     
      String configXML = getDefaultConfigXML();
      meeting.storeConfig(true, configXML);
     
      return meeting;
  }
View Full Code Here

Examples of org.mifosplatform.portfolio.meeting.domain.Meeting

        final Date meetingDate = command.DateValueOfParameterNamed(meetingDateParamName);

        try {
            final CalendarInstance calendarInstance = getCalendarInstance(command);
            // create new meeting
            final Meeting newMeeting = Meeting.createNew(calendarInstance, meetingDate);

            final Collection<ClientAttendance> clientsAttendance = getClientsAttendance(newMeeting, command);
            if (clientsAttendance != null && !clientsAttendance.isEmpty()) {
                newMeeting.associateClientsAttendance(clientsAttendance);
            }
            // save meeting details
            this.meetingRepositoryWrapper.save(newMeeting);
            final Long groupId = newMeeting.isGroupEntity() ? newMeeting.entityId() : null;
            return new CommandProcessingResultBuilder() //
                    .withEntityId(newMeeting.getId()) //
                    .withGroupId(groupId).build();

        } catch (final DataIntegrityViolationException dve) {
            handleMeetingDataIntegrityIssues(meetingDate, dve);
            return new CommandProcessingResultBuilder() //
View Full Code Here

Examples of org.mifosplatform.portfolio.meeting.domain.Meeting

    @Override
    public CommandProcessingResult updateMeeting(final JsonCommand command) {
        this.meetingDataValidator.validateForUpdate(command);

        final Meeting meetingForUpdate = this.meetingRepositoryWrapper.findOneWithNotFoundDetection(command.entityId());
        final Map<String, Object> changes = meetingForUpdate.update(command);

        try {
            if (!changes.isEmpty()) {
                this.meetingRepositoryWrapper.saveAndFlush(meetingForUpdate);
            }
        } catch (final DataIntegrityViolationException dve) {
            handleMeetingDataIntegrityIssues(meetingForUpdate.getMeetingDate(), dve);
            return new CommandProcessingResultBuilder() //
                    .build();
        }
        final Long groupId = meetingForUpdate.isGroupEntity() ? meetingForUpdate.entityId() : null;
        return new CommandProcessingResultBuilder() //
                .withEntityId(meetingForUpdate.getId()) //
                .withGroupId(groupId) //
                .with(changes) //
                .build();
    }
View Full Code Here

Examples of org.mifosplatform.portfolio.meeting.domain.Meeting

                .build();
    }

    @Override
    public CommandProcessingResult deleteMeeting(final Long meetingId) {
        final Meeting meetingForDelete = this.meetingRepositoryWrapper.findOneWithNotFoundDetection(meetingId);
        this.meetingRepositoryWrapper.delete(meetingForDelete);
        return new CommandProcessingResultBuilder() //
                .withEntityId(meetingId) //
                .build();
    }
View Full Code Here

Examples of org.mifosplatform.portfolio.meeting.domain.Meeting

    @Override
    public CommandProcessingResult saveOrUpdateAttendance(final JsonCommand command) {
        this.meetingDataValidator.validateForUpdateAttendance(command);

        final Meeting meetingForUpdate = this.meetingRepositoryWrapper.findOneWithNotFoundDetection(command.entityId());
        final Collection<ClientAttendance> clientsAttendance = getClientsAttendance(meetingForUpdate, command);
        final Map<String, Object> changes = meetingForUpdate.updateAttendance(clientsAttendance);

        this.meetingRepositoryWrapper.saveAndFlush(meetingForUpdate);
        final Long groupId = meetingForUpdate.isGroupEntity() ? meetingForUpdate.entityId() : null;
        return new CommandProcessingResultBuilder() //
                .withEntityId(meetingForUpdate.getId()) //
                .withGroupId(groupId) //
                .with(changes) //
                .build();
    }
View Full Code Here

Examples of org.mifosplatform.portfolio.meeting.domain.Meeting

    public void updateCollectionSheetAttendance(final JsonCommand command) {
        final Date meetingDate = command.DateValueOfParameterNamed(transactionDateParamName);

        try {
            final CalendarInstance calendarInstance = getCalendarInstance(command);
            final Meeting meeting = this.meetingRepository.findByCalendarInstanceIdAndMeetingDate(calendarInstance.getId(), meetingDate);

            // create new meeting
            final Meeting newMeeting = (meeting != null) ? meeting : Meeting.createNew(calendarInstance, meetingDate);

            final Collection<ClientAttendance> clientsAttendance = getClientsAttendance(newMeeting, command);
            if (clientsAttendance != null && !clientsAttendance.isEmpty()) {
                newMeeting.updateAttendance(clientsAttendance);
            }
            // save meeting details
            this.meetingRepositoryWrapper.save(newMeeting);
        } catch (final DataIntegrityViolationException dve) {
            handleMeetingDataIntegrityIssues(meetingDate, dve);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.