Package org.apache.openmeetings.db.entity.room

Examples of org.apache.openmeetings.db.entity.room.Room


    // TODO Auto-generated method stub
  }

  @Override
  protected void onNewSubmit(AjaxRequestTarget target, Form<?> form) {
    setModelObject(new Room());
    updateView(target);
  }
View Full Code Here


    // TODO Auto-generated method stub
  }

  @Override
  protected void onRefreshSubmit(AjaxRequestTarget target, Form<?> form) {
    Room r = getModelObject();
    if (r.getRooms_id() != null) {
      r = getBean(RoomDao.class).get(r.getRooms_id());
    } else {
      r = new Room();
    }
    setModelObject(r);
    updateView(target);
  }
View Full Code Here

  @Override
  protected void onDeleteSubmit(AjaxRequestTarget target, Form<?> form) {
    getBean(RoomDao.class).delete(getModelObject(), getUserId());
    target.add(roomList);
    setModelObject(new Room());
    updateView(target);
  }
View Full Code Here

     * Returns number of SIP conference participants
     * @param rooms_id id of room
     * @return number of participants
     */
    public Integer getSipConferenceMembersNumber(Long rooms_id) {
      Room r = roomDao.get(rooms_id);
      return r == null || r.getConfno() == null ? null : sipDao.countUsers(r.getConfno());
    }
View Full Code Here

      Boolean hideActionsMenu, Boolean hideScreenSharing, Boolean hideWhiteboard,
      Boolean showMicrophoneStatus, Boolean chatModerated, boolean chatOpened
      , boolean filesOpened, boolean autoVideoSelect, boolean sipEnabled) {

    try {
      Room r = new Room();
      r.setName(name);
      r.setComment(comment);
      r.setStarttime(new Date());
      r.setNumberOfPartizipants(numberOfPartizipants);
      r.setRoomtype(roomTypeDao.get(roomtypes_id));
      r.setIspublic(ispublic);
      r.setAllowUserQuestions(allowUserQuestions);
      r.setIsAudioOnly(isAudioOnly);
      r.setAllowFontStyles(allowFontStyles);

      r.setAppointment(appointment);

      r.setIsDemoRoom(isDemoRoom);
      r.setDemoTime(demoTime);

      r.setIsModeratedRoom(isModeratedRoom);
      r.setHideTopBar(hideTopBar);

      r.setDeleted(false);

      r.setIsClosed(isClosed);
      r.setRedirectURL(redirectURL);

      r.setOwnerId(ownerId);

      r.setWaitForRecording(waitForRecording);
      r.setAllowRecording(allowRecording);
     
      r.setHideChat(hideChat);
      r.setHideActivitiesAndActions(hideActivitiesAndActions);
      r.setHideActionsMenu(hideActionsMenu);
      r.setHideFilesExplorer(hideFilesExplorer);
      r.setHideScreenSharing(hideScreenSharing)
      r.setHideWhiteboard(hideWhiteboard);
      r.setShowMicrophoneStatus(showMicrophoneStatus);
      r.setChatModerated(chatModerated);
      r.setChatOpened(chatOpened);
      r.setFilesOpened(filesOpened);
      r.setAutoVideoSelect(autoVideoSelect);
      r.setSipEnabled(sipEnabled);
      r.setPin(conferencePin);
     
      r = roomDao.update(r, ownerId);

      if (organisations != null) {
        Long t = this.updateRoomOrganisations(organisations, r);
        if (t == null) {
          return null;
        }
      }

      if (roomModerators != null) {
        r.setModerators(getModerators(roomModerators, r.getRooms_id()));
        r = roomDao.update(r, ownerId);
      }

      return r.getRooms_id();
    } catch (Exception ex2) {
      log.error("[addRoom] ", ex2);
    }
    return null;
  }
View Full Code Here

      Boolean allowRecording, Boolean hideTopBar) {

    log.debug("addExternalRoom");

    try {
      Room r = new Room();
      r.setName(name);
      r.setComment(comment);
      r.setStarttime(new Date());
      r.setNumberOfPartizipants(numberOfPartizipants);
      r.setRoomtype(roomTypeDao.get(roomtypes_id));
      r.setIspublic(ispublic);

      r.setAllowUserQuestions(allowUserQuestions);
      r.setIsAudioOnly(isAudioOnly);
      r.setAllowFontStyles(allowFontStyles);

      r.setAppointment(appointment);

      r.setIsDemoRoom(isDemoRoom);
      r.setDemoTime(demoTime);

      r.setIsModeratedRoom(isModeratedRoom);

      r.setDeleted(false);

      r.setExternalRoomId(externalRoomId);
      r.setExternalRoomType(externalRoomType);

      r.setIsClosed(isClosed);
      r.setRedirectURL(redirectURL);

      r.setWaitForRecording(waitForRecording);
      r.setAllowRecording(allowRecording);

      r.setHideTopBar(hideTopBar);

      r = em.merge(r);

      long returnId = r.getRooms_id();

      if (organisations != null) {
        Long t = this.updateRoomOrganisations(organisations, r);
        if (t == null) {
          return null;
        }
      }

      if (roomModerators != null) {
        r.setModerators(getModerators(roomModerators, r.getRooms_id()));
        r = roomDao.update(r, null);
      }

      return returnId;
    } catch (Exception ex2) {
View Full Code Here

      Boolean showMicrophoneStatus, Boolean chatModerated, boolean chatOpened, boolean filesOpened
      , boolean autoVideoSelect, boolean sipEnabled) {
    try {
      log.debug("*** updateRoom numberOfPartizipants: "
          + numberOfPartizipants);
      Room r = roomDao.get(rooms_id);
      r.setComment(comment);

      r.setIspublic(ispublic);
      r.setNumberOfPartizipants(numberOfPartizipants);
      r.setName(name);
      r.setRoomtype(roomTypeDao.get(roomtypes_id));
      r.setUpdatetime(new Date());
      r.setAllowUserQuestions(allowUserQuestions);
      r.setIsAudioOnly(isAudioOnly);
      r.setAllowFontStyles(allowFontStyles);

      r.setIsDemoRoom(isDemoRoom);
      r.setDemoTime(demoTime);

      r.setAppointment(appointment);

      r.setIsModeratedRoom(isModeratedRoom);
      r.setHideTopBar(hideTopBar);

      r.setIsClosed(isClosed);
      r.setRedirectURL(redirectURL);
      r.setOwnerId(ownerId);
      r.setWaitForRecording(waitForRecording);
      r.setAllowRecording(allowRecording);
     
      r.setHideChat(hideChat);
      r.setHideActivitiesAndActions(hideActivitiesAndActions);
      r.setHideActionsMenu(hideActionsMenu);
      r.setHideFilesExplorer(hideFilesExplorer);
      r.setHideScreenSharing(hideScreenSharing);
      r.setHideWhiteboard(hideWhiteboard);
      r.setShowMicrophoneStatus(showMicrophoneStatus);
      r.setChatModerated(chatModerated);
      r.setChatOpened(chatOpened);
      r.setFilesOpened(filesOpened);
      r.setAutoVideoSelect(autoVideoSelect);
      r.setPin(conferencePin);
      r.setSipEnabled(sipEnabled);
      r = roomDao.update(r, ownerId);

      if (organisations != null) {
        Long t = this.updateRoomOrganisations(organisations, r);
        if (t == null) {
          return null;
        }
      }
      if (roomModerators != null) {
        r.setModerators(getModerators(roomModerators, r.getRooms_id()));
        r = roomDao.update(r, null);
      }

      return r.getRooms_id();
    } catch (Exception ex2) {
      log.error("[updateRoom] ", ex2);
    }
    return null;
  }
View Full Code Here

  // --------------------------------------------------------------------------------------------

  public void closeRoom(Long rooms_id, Boolean status) {
    try {

      Room room = roomDao.get(rooms_id);

      room.setIsClosed(status);

      roomDao.update(room, -1L);

    } catch (Exception e) {
      log.error("Error updateRoomObject : ", e);
View Full Code Here

      if (roomtypesId == null || roomtypesId == 0) {
        return null;
      }
      log.debug("getRoomByOwnerAndTypeId : " + ownerId + " || " + roomtypesId);
      Room room = null;
      TypedQuery<Room> query = em.createNamedQuery("getRoomByOwnerAndTypeId", Room.class);
      query.setParameter("ownerId", ownerId);
      query.setParameter("roomtypesId", roomtypesId);
      query.setParameter("deleted", true);
      List<Room> ll = query.getResultList();
View Full Code Here

 
        // Filter : no appointed meetings
        List<Room> filtered = new ArrayList<Room>();
 
        for (Iterator<Room> iter = roomList.iterator(); iter.hasNext();) {
          Room rooms = iter.next();
 
          if (!rooms.getAppointment()) {
            rooms.setCurrentusers(this.getRoomClientsListByRoomId(rooms
                .getRooms_id()));
            filtered.add(rooms);
          }
        }
 
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.room.Room

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.