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

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


      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


        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

      RoomType rt = roomManager.getRoomTypesById(roomType);

      Appointment app = appointmentLogic
          .getAppointMentById(appointmentId);

      Room room = app.getRoom();
      if (room != null) {

        room.setComment(appointmentDescription);
        room.setName(appointmentName);
        room.setRoomtype(rt);

        roomDao.update(room, users_id);
      }

      User user = userManager.getUserById(users_id);
View Full Code Here

      if (authLevelUtil.checkUserLevel(user_level)) {

        log.debug("updateAppointment");

        Appointment app = appointmentLogic.getAppointMentById(appointmentId);
        Room room = app.getRoom();
        if (roomId > 0) {
          if ( room.getRooms_id() != roomId) {
            app.setRoom(roomDao.get(roomId));
            appointmentDao.updateAppointment(app);
            boolean isAppRoom = room.getAppointment();
            if (isAppRoom) {
              roomDao.delete(room, users_id);
            }
          }
        } else {
          RoomType rt = roomManager.getRoomTypesById(roomType);
 
          if (room != null) {
 
            room.setComment(appointmentDescription);
            room.setName(appointmentName);
            room.setRoomtype(rt);
 
            roomDao.update(room, users_id);
          }
        }
        User user = userManager.getUserById(users_id);
View Full Code Here

      RoomType rt = roomManager.getRoomTypesById(roomType);

      Appointment app = appointmentLogic
          .getAppointMentById(appointmentId);

      Room room = app.getRoom();
      if (room != null) {

        room.setComment(appointmentDescription);
        room.setName(appointmentName);
        room.setRoomtype(rt);

        roomDao.update(room, users_id);
      }

      User user = userManager.getUserById(users_id);
View Full Code Here

                .getDateWithTimeByMiliSeconds(appointmentstart));
        log.info("validToDate: "
            + CalendarPatterns
                .getDateWithTimeByMiliSeconds(appointmentend));

        Room room = null;

        String baseURL = "http://" + domain + ":" + port + webapp;
        if (port.equals("80")) {
          baseURL = "http://" + domain + webapp;
        } else if (port.equals("443")) {
View Full Code Here

      if (currentModList.size() > 0) {
        return 2L;
      } else {
        // No moderator in this room at the moment
        Room room = roomDao.get(currentClient.getRoom_id());

        if (room.getIsModeratedRoom()) {
          return 3L;
        } else {
          return 1L;
        }
      }
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.