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

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


   * @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

    }
    return null;
  }

  public Room getRoomWithCurrentUsersById(String SID, long rooms_id) {
    Room room = null;
    Long users_id = sessiondataDao.checkSession(SID);
    if (AuthLevelUtil.hasUserLevel(userDao.getRights(users_id))) {
      room = roomDao.get(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

    try {
      Long users_id = sessiondataDao.checkSession(SID);

      if (AuthLevelUtil.hasWebServiceLevel(userDao.getRights(users_id))) {

        Room room = roomDao.get(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

      Integer demoTime, Boolean isModeratedRoom, Long externalRoomId,
      String externalRoomType) throws AxisFault {
    try {
      Long users_id = sessiondataDao.checkSession(SID);
      if (AuthLevelUtil.hasWebServiceLevel(userDao.getRights(users_id))) {
        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

        throw new AxisFault("Non modifiable parameter");
      }
      Long users_id = sessiondataDao.checkSession(SID);
      if (AuthLevelUtil.hasWebServiceLevel(userDao.getRights(users_id))) {
        log.debug(String.format("modifyRoomParameter[%s]: %s = %s", room_id, paramName, paramValue));
        Room r = roomDao.get(room_id);
        BeanWrapper rw = new BeanWrapperImpl(r);
        Class<?> valueClass = rw.getPropertyType(paramName);
        Object val = null;
        //don't like this code
        if (valueClass.isAssignableFrom(String.class)) {
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.