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

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


  }

  public Room getRoomWithCurrentUsersById(String SID, long rooms_id) {
    Long users_id = sessiondataDao.checkSession(SID);
    Long user_level = userManager.getUserLevelByID(users_id);
    Room room = roomManager.getRoomById(user_level, rooms_id);
    room.setCurrentusers(sessionManager.getClientListByRoom(room.getRooms_id()));
    return room;
  }
View Full Code Here


   * @param room_id
   * @return - true if room is full, false otherwise
   */
  public boolean isRoomFull(Long room_id) {
    try {
      Room room = roomDao.get(room_id);
     
      if (room.getNumberOfPartizipants() <= this.sessionManager
          .getClientListByRoom(room_id).size()) {
        return true;
      }
     
      return false;
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(String.format("modifyRoomParameter[%s]: %s = %s", room_id, paramName, paramValue));
        Room r = roomDao.get(room_id);
        BeanWrapper rw = new BeanWrapperImpl(r);
        rw.setPropertyValue(paramName, paramValue);
        roomDao.update(r, users_id);
      } else {
        return -2;
View Full Code Here

     
      if (room_id == null) {
        return 1; //TODO weird
      }
      Long user_level = userManager.getUserLevelByID(currentClient.getUser_id());
      Room room = roomManager.getRoomById(user_level, room_id);
      @SuppressWarnings("rawtypes")
      ArrayList messageMap = (ArrayList) newMessage;
      // adding delimiter space, cause otherwise an emoticon in the last
      // string would not be found
      String messageText = messageMap.get(4) + " ";
      LinkedList<String[]> parsedStringObjects = ChatString.parseChatString(messageText, emoticonsManager.getEmotfilesList(), room.getAllowFontStyles());
      // log.error("parsedStringObjects"+parsedStringObjects.size());
      log.debug("size:" + messageMap.size());
      messageMap.add(parsedStringObjects);
      newMessage = messageMap;     
View Full Code Here

    try {
      IConnection current = Red5.getConnectionLocal();
      Client currentClient = this.sessionManager.getClientByStreamId(current.getClient().getId(), null);
      Long room_id = currentClient.getRoom_id();
      Long user_level = userManager.getUserLevelByID(currentClient.getUser_id());
      Room room = roomManager.getRoomById(user_level, room_id);
      log.debug("room_id: " + room_id);

      @SuppressWarnings("rawtypes")
      ArrayList messageMap = (ArrayList) newMessage;
      // adding delimiter space, cause otherwise an emoticon in the last
      // string would not be found
      String messageText = messageMap.get(4).toString() + " ";
      // add server time
      messageMap.set(1, parseDateAsTimeString());
      LinkedList<String[]> parsedStringObjects = ChatString.parseChatString(messageText, emoticonsManager.getEmotfilesList(), room.getAllowFontStyles());
      // log.error("parsedStringObjects"+parsedStringObjects.size());
      log.debug("size:" + messageMap.size());
      messageMap.add(parsedStringObjects);
      newMessage = messageMap;
View Full Code Here

  }

  public Room getRoomWithCurrentUsersById(long user_level, long rooms_id) {
    try {
      if (AuthLevelUtil.checkUserLevel(user_level)) {
        Room room = roomDao.get(rooms_id);

        if (room != null) {
          room.setCurrentusers(sessionManager.getClientListByRoom(room.getRooms_id()));

          return room;
        }
      }
    } catch (Exception ex2) {
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

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.