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

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


   */
  public synchronized Boolean checkRoomValues(Long room_id) {
    try {

      // appointed meeting or moderated Room?
      Room room = roomDao.get(room_id);

      // not really - default logic
      if (room.getAppointment() == null || room.getAppointment() == false) {

        if (room.getIsModeratedRoom()) {

          // if this is a Moderated Room then the Room can be only
          // locked off by the Moderator Bit
          List<Client> clientModeratorListRoom = this.sessionManager
              .getCurrentModeratorByRoom(room_id);
View Full Code Here


      currentClient.setIsSuperModerator(isSuperModerator);

      this.sessionManager.updateClientByStreamId(streamid,
          currentClient, true, null);

            Room room = roomDao.get(room_id);
            if (room.getShowMicrophoneStatus()) {
              currentClient.setCanGiveAudio(true);
            }

      // Log the User
      conferenceLogDao.addConferenceLog("roomEnter",
          currentClient.getUser_id(), streamid, room_id,
          currentClient.getUserip(), "",
          currentClient.getExternalUserId(),
          currentClient.getExternalUserType(),
          currentClient.getMail(), currentClient.getFirstname(),
          currentClient.getLastname());
     
      // Check for Moderation LogicalRoom ENTER
      List<Client> clientListRoom = sessionManager.getClientListByRoom(room_id);

      // appointed meeting or moderated Room? => Check Max Users first
      if (room.getNumberOfPartizipants() != null
          && clientListRoom.size() > room.getNumberOfPartizipants()) {
        roomStatus.setRoomFull(true);
        return roomStatus;
      }

      // default logic for non regular rooms
      if (room.getAppointment() == null || room.getAppointment() == false) {

        if (room.getIsModeratedRoom()) {

          // if this is a Moderated Room then the Room can be only
          // locked off by the Moderator Bit
          // List<RoomClient> clientModeratorListRoom =
          // this.sessionManager.getCurrentModeratorByRoom(room_id);
View Full Code Here

      log.error("Executing asterisk originate error: ", e);
    }
  }

    public synchronized String getSipNumber(Long room_id) {
        Room r = roomDao.get(room_id);
        if(r != null && r.getConfno() != null) {
            log.debug("getSipNumber: room_id: {}, sipNumber: {}", new Object[]{room_id, r.getConfno()});
            return r.getConfno();
        }
        return null;
    }
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

   * @return - Appointment in case the room is appointment, null otherwise
   */
  public Appointment getAppointMentDataForRoom(Long room_id) {
    log.debug("getAppointMentDataForRoom");

    Room room = roomDao.get(room_id);

    if (room.getAppointment() == false)
      return null;

    try {
      Appointment ment = appointmentLogic.getAppointmentByRoom(room_id);

View Full Code Here

      log.debug("getCurrentRoomClient -2- " + streamid);
 
      Client currentClient = this.sessionManager
          .getClientByStreamId(streamid, null);
 
      Room room = roomDao.get(room_id);
 
      if (room.getAppointment() == false) {
        throw new IllegalStateException("Room has no appointment");
      }
   
      Appointment appointment = appointmentLogic
          .getAppointmentByRoom(room_id);
View Full Code Here

      if (points != null) {
        for (int i = 0; i < points.size(); i++) {
          Appointment ment = points.get(i);

          Long rooms_id = ment.getRoom().getRooms_id();
          Room rooom = roomDao.get(rooms_id);

          if (!rooom.getRoomtype().getRoomtypes_id()
              .equals(room_types_id))
            continue;

          rooom.setCurrentusers(getRoomClientsListByRoomId(rooom
              .getRooms_id()));
          result.add(rooom);
        }
      }
View Full Code Here

        if (appointments != null) {
          for (int i = 0; i < appointments.size(); i++) {
            Appointment ment = appointments.get(i);

            Long rooms_id = ment.getRoom().getRooms_id();
            Room rooom = roomDao.get(rooms_id);

            rooom.setCurrentusers(this
                .getRoomClientsListByRoomId(rooom.getRooms_id()));
            result.add(rooom);
          }
        }

        log.debug("Found " + result.size() + " rooms");
View Full Code Here

  }

  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

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.