Package org.apache.openmeetings.db.dao.room

Examples of org.apache.openmeetings.db.dao.room.RoomDao


    }
   
    private List<Room> getRoomList() {
      //FIXME need to be reviewed
      List<Room> result = new ArrayList<Room>();
      RoomDao dao = getBean(RoomDao.class);
      result.addAll(dao.getPublicRooms());
      for (Organisation_Users ou : getBean(UserDao.class).get(getUserId()).getOrganisation_users()) {
        result.addAll(dao.getOrganisationRooms(ou.getOrganisation().getOrganisation_id()));
      }
      if (getModelObject().getRoom() != null && getModelObject().getRoom().getAppointment()) { //FIXME review
        result.add(getModelObject().getRoom());
      }
      return result;
View Full Code Here


    }
   
    private List<Room> getRoomList() {
      //FIXME need to be reviewed
      List<Room> result = new ArrayList<Room>();
      RoomDao dao = getBean(RoomDao.class);
      result.addAll(dao.getPublicRooms());
      for (Organisation_Users ou : getBean(UserDao.class).get(getUserId()).getOrganisation_users()) {
        result.addAll(dao.getOrganisationRooms(ou.getOrganisation().getOrganisation_id()));
      }
      if (getModelObject().getRoom() != null && getModelObject().getRoom().getAppointment()) { //FIXME review
        result.add(getModelObject().getRoom());
      }
      return result;
View Full Code Here

  public RoomsSelectorPanel(String id, MenuParams param) {
    super(id);

    long title, desc;
    RoomDao roomDao = Application.getBean(RoomDao.class);
    switch (param) {
      case myTabButton:
        title = 781L;
        desc = 782L;
        add(new RoomsPanel("rooms", getMyRooms()));
        break;
      case privateTabButton:
        title = 779L;
        desc = 780L;
        add(new RoomsTabbedPanel("rooms"));
        break;
      case publicTabButton:
      default:
        title = 777L;
        desc = 778L;
        add(new RoomsPanel("rooms", roomDao.getPublicRooms()));
        break;
    }
    add(new Label("title", WebSession.getString(title)));
    add(new Label("desc", WebSession.getString(desc)));
  }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.dao.room.RoomDao

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.