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

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


    PrivateMessage p = new PrivateMessage();
    p.setFrom(getBean(UserDao.class).get(getUserId()));
    p.setOwner(p.getFrom());
    p.setIsRead(false);
    p.setFolderId(INBOX_FOLDER_ID);
    Room r = new Room();
    r.setAppointment(true);
    r.setRoomtype(getRoomTypes().get(0));
    p.setRoom(r);
    setModelObject(p);
    roomParams.setVisible(getModelObject().isBookedRoom());
    form.setModelObject(p);
    this.isPrivate = isPrivate;
View Full Code Here


  @Override
  protected void onSubmit(AjaxRequestTarget target) {
    PrivateMessage p = getModelObject();
    p.setInserted(new Date());
    if (p.isBookedRoom()) {
      Room r = p.getRoom();
      r.setName(p.getSubject());
      r.setComment("");
      r.setNumberOfPartizipants(100L);
      r.setAppointment(true);
      r.setAllowUserQuestions(true);
      r.setAllowFontStyles(true);
      getBean(RoomDao.class).update(r, getUserId());
    } else {
      p.setRoom(null);
    }
    PrivateMessagesDao msgDao = getBean(PrivateMessagesDao.class);
View Full Code Here

        a.setRemind(remindTypes.get(0));
      }
     
      List<RoomType> roomTypes = getRoomTypes();
      if (a.getRoom() == null) {
        Room r = new Room();
        r.setAppointment(true);
        a.setRoom(r);
      }
      if (a.getRoom().getRoomtype() == null && !roomTypes.isEmpty()) {
        a.getRoom().setRoomtype(roomTypes.get(0));
      }
View Full Code Here

   */
  // --------------------------------------------------------------------------------------------
  public Appointment getAppointmentByRoom(Long room_id) throws Exception {
    log.debug("getAppointmentByRoom");

    Room room = roomDao.get(room_id);

    if (room == null) {
      throw new Exception("Room does not exist in database!");
    }

    if (!room.getAppointment()) {
      throw new Exception("Room " + room.getName() + " isnt part of an appointed meeting");
    }

    return appointmentDao.getAppointmentByRoom(room_id);
  }
View Full Code Here

    a.setCategory(appointmentCategoryDao.get(categoryId));
    a.setRemind(appointmentReminderTypDao.get(remind));
    if (roomId > 0) {
      a.setRoom(roomDao.get(roomId));
    } else {
      a.setRoom(new Room());
      a.getRoom().setComment(appointmentDescription);
      a.getRoom().setName(appointmentName);
      a.getRoom().setRoomtype(roomTypeDao.get(roomType));
    }
    a.setOwner(userDao.get(users_id));
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

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.