Package org.apache.openmeetings.persistence.beans.room

Examples of org.apache.openmeetings.persistence.beans.room.Room


        if (roomList != null && roomList.size() != 0) {
          // roomsListObject.setRoomList(roomList);
          Room[] roomItems = new Room[roomList.size()];
          int count = 0;
          for (Iterator<Room> it = roomList.iterator(); it.hasNext();) {
            Room room = it.next();
            room.setCurrentusers(null);
            roomItems[count] = room;
            count++;
          }

          return roomItems;
View Full Code Here


      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);

      if (authLevelUtil.checkWebServiceLevel(user_level)) {

        Room room = roomManager.getRoomById(user_level, rooms_id);

        RoomReturn roomReturn = new RoomReturn();

        roomReturn.setCreated(room.getStarttime());
        roomReturn.setCreator(null);
        roomReturn.setName(room.getName());
        roomReturn.setRoom_id(room.getRooms_id());

        List<Client> map = sessionManager
            .getClientListByRoom(room.getRooms_id());

        RoomUser[] roomUsers = new RoomUser[map.size()];

        int i = 0;
        for (Client rcl : map) {
View Full Code Here

      String externalRoomType) throws AxisFault {
    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);
      if (authLevelUtil.checkWebServiceLevel(user_level)) {
        Room room = conferenceService.getRoomByExternalId(SID,
            externalRoomId, externalRoomType, roomtypes_id);
        Long roomId = null;
        if (room == null) {
          roomId = roomManager.addExternalRoom(name, roomtypes_id,
              comment, numberOfPartizipants, ispublic, null,
              appointment, isDemoRoom, demoTime, isModeratedRoom,
              null, externalRoomId, externalRoomType, true,
              false, true, false, "", false, true, false);
        } else {
          roomId = room.getRooms_id();
        }
        return roomId;
      }

      return -26L;
View Full Code Here

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);
      if (authLevelUtil.checkWebServiceLevel(user_level)) {
        log.debug("closeRoom 1 " + room_id);
        Room r = roomDao.get(room_id);
        PropertyUtils.setSimpleProperty(r, paramName, paramValue);
        roomDao.update(r, users_id);
      } else {
        return -2;
      }
View Full Code Here

    log.debug("addRoom");

    try {
      if (authLevelUtil.checkModLevel(user_level)) {
        Room r = new Room();
        r.setName(name);
        r.setComment(comment);
        r.setStarttime(new Date());
        r.setNumberOfPartizipants(numberOfPartizipants);
        r.setRoomtype(this.getRoomTypesById(roomtypes_id));
        r.setIspublic(ispublic);

        r.setAllowUserQuestions(allowUserQuestions);
        r.setAppointment(appointment);

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

        r.setIsModeratedRoom(isModeratedRoom);

        r.setDeleted(false);
        r = em.merge(r);
        long returnId = r.getRooms_id();

        this.addRoomToOrganisation(3, returnId, organisation_id);

        if (roomModerators != null) {
          roomModeratorsDao.addRoomModeratorByUserList(
              roomModerators, r.getRooms_id());
        }

        return returnId;
      }
    } catch (Exception ex2) {
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(this.getRoomTypesById(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) {
        roomModeratorsDao.addRoomModeratorByUserList(roomModerators,
            r.getRooms_id());
      }

      return returnId;
    } catch (Exception ex2) {
      log.error("[addExternalRoom] ", ex2);
View Full Code Here

    try {
      if (authLevelUtil.checkModLevel(user_level)) {

        if (this.checkUserOrgRoom(user_id, rooms_id)) {

          Room r = roomDao.get(rooms_id);
          r.setComment(comment);
          r.setIspublic(ispublic);
          r.setName(name);
          r.setRoomtype(this.getRoomTypesById(roomtypes_id));
          r.setUpdatetime(new Date());

          if (r.getRooms_id() == null) {
            em.persist(r);
          } else {
            if (!em.contains(r)) {
              em.merge(r);
            }
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(this.getRoomTypesById(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);
      roomDao.update(r, ownerId);

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

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

      List<Map<String, Object>> roomModerators, Boolean allowUserQuestions) {
    try {
      log.debug("*** updateRoom numberOfPartizipants: "
          + numberOfPartizipants);
      if (authLevelUtil.checkModLevel(user_level)) {
        Room r = roomDao.get(rooms_id);
        r.setComment(comment);

        r.setIspublic(ispublic);
        r.setNumberOfPartizipants(numberOfPartizipants);
        r.setName(name);
        r.setRoomtype(this.getRoomTypesById(roomtypes_id));
        r.setUpdatetime(new Date());
        r.setAllowUserQuestions(allowUserQuestions);

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

        r.setAppointment(appointment);

        r.setIsModeratedRoom(isModeratedRoom);

        if (r.getRooms_id() == null) {
          em.persist(r);
        } else {
          if (!em.contains(r)) {
            em.merge(r);
          }
        }

        // FIXME: Organizations will not be changed when you do an
        // update as Moderator

        if (roomModerators != null) {
          roomModeratorsDao.updateRoomModeratorByUserList(
              roomModerators, r.getRooms_id());
        }

        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

TOP

Related Classes of org.apache.openmeetings.persistence.beans.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.