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

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


    if (ap.getRemind() == null && !remindTypes.isEmpty()) {
      ap.setRemind(remindTypes.get(0));
    }
   
    Room r = new Room();
    if (!roomTypes.isEmpty()) {
      r.setRoomtype(roomTypes.get(0));
    }
    r.setAppointment(true);
    ap.setRoom(r);
    return ap;
  }
View Full Code Here


    if (ap.getRemind() == null && !remindTypes.isEmpty()) {
      ap.setRemind(remindTypes.get(0));
    }
   
    Room r = new Room();
    if (!roomTypes.isEmpty()) {
      r.setRoomtype(roomTypes.get(0));
    }
    r.setAppointment(true);
    ap.setRoom(r);
    return ap;
  }
View Full Code Here

    }
    return null;
  }

  public Appointment update(Appointment a, String baseUrl, Long userId) {
    Room r = a.getRoom();
    if (r.getRooms_id() == null) {
      r.setName(a.getTitle());
      r.setNumberOfPartizipants(cfgDao.getConfValue("calendar.conference.rooms.default.size", Long.class, "50"));
    }
    roomDao.update(r, userId);
    Set<Long> mmIds = a.getId() == null ? new HashSet<Long>()
        : meetingMemberDao.getMeetingMemberIdsByAppointment(a.getId());
    // update meeting members
View Full Code Here

 
  public Room read(InputNode node) throws Exception {
    long oldId = getlongValue(node);
    long newId = idMap.containsKey(oldId) ? idMap.get(oldId) : oldId;

    Room r = roomDao.get(newId);
    return r == null ? new Room() : r;
  }
View Full Code Here

  }
 
  public VideoInfo update(AjaxRequestTarget target, FlvRecording r) {
    rm.setObject(r == null ? new FlvRecording() : r);
    try {
      Room room = getBean(RoomDao.class).get(r.getRoom_id());
      roomName.setObject(room.getName());
    } catch (Exception e) {
      //no-op
    }
   
    dAVI.setEnabled(isRecordingExists(rm.getObject().getAlternateDownload()));
View Full Code Here

    add(new ListView<Room>("list", rooms) {
      private static final long serialVersionUID = 9189085478336224890L;

      @Override
      protected void populateItem(ListItem<Room> item) {
        final Room r = item.getModelObject();
        WebMarkupContainer roomContainer;
        item.add((roomContainer = new WebMarkupContainer("roomContainer")).add(new AjaxEventBehavior("onclick"){
          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onEvent(AjaxRequestTarget target) {
            roomId = r.getRooms_id();
            updateRoomDetails(target);
          }
        }));
        roomContainer.add(new Label("roomName", r.getName()));
        final IModel<Integer> curUsersModel = new Model<Integer>(Application.getBean(ISessionManager.class).getClientListByRoom(r.getRooms_id()).size());
        final Label curUsers = new Label("curUsers", curUsersModel);
        roomContainer.add(curUsers.setOutputMarkupId(true));
        roomContainer.add(new Label("totalUsers", r.getNumberOfPartizipants()));
        item.add(new Button("enter").add(new RoomEnterBehavior(r.getRooms_id())));
        roomContainer.add(new AjaxLink<Void>("refresh") {
          private static final long serialVersionUID = -3426813755917489787L;

          @Override
          public void onClick(AjaxRequestTarget target) {
            roomId = r.getRooms_id();
            curUsersModel.setObject(Application.getBean(ISessionManager.class).getClientListByRoom(r.getRooms_id()).size());
            target.add(curUsers);
            updateRoomDetails(target);
          }
        });
      }
View Full Code Here

  }

  void updateRoomDetails(AjaxRequestTarget target) {
    final List<Client> clientsInRoom = Application.getBean(ISessionManager.class).getClientListByRoom(roomId);
    clients.setDefaultModelObject(clientsInRoom);
    Room room = Application.getBean(RoomDao.class).get(roomId);
    roomID.setObject(room.getRooms_id());
    roomName.setObject(room.getName());
    roomComment.setObject(room.getComment());
    target.add(clientsContainer, details);
  }
View Full Code Here

    SearchableDataView<Room> dataView = new SearchableDataView<Room>("roomList", new SearchableDataProvider<Room>(RoomDao.class)) {
      private static final long serialVersionUID = 8715559628755439596L;

      @Override
      protected void populateItem(final Item<Room> item) {
        final Room room = item.getModelObject();
        item.add(new Label("rooms_id", "" + room.getRooms_id()));
        item.add(new Label("name", "" + room.getName()));
        item.add(new Label("ispublic", "" + room.getIspublic()));
        item.add(new AjaxEventBehavior("onclick") {
          private static final long serialVersionUID = -8069413566800571061L;

          protected void onEvent(AjaxRequestTarget target) {
            form.hideNewRecord();
            form.setModelObject(room);
            form.updateView(target);
            target.add(form, listContainer);
            target.appendJavaScript("omRoomPanelInit();");
          }
        });
        item.add(AttributeModifier.replace("class", "clickable "
            + (item.getIndex() % 2 == 1 ? "even" : "odd")
            + (room.getRooms_id().equals(form.getModelObject().getRooms_id()) ? " selected" : "")));
      }
    };
   
    add(listContainer.add(dataView).setOutputMarkupId(true));
    PagedEntityListPanel navigator = new PagedEntityListPanel("navigator", dataView) {
      private static final long serialVersionUID = -1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        target.add(listContainer);
      }
    };
    DataViewContainer<Room> container = new DataViewContainer<Room>(listContainer, dataView, navigator);
    container.setLinks(new OmOrderByBorder<Room>("orderById", "rooms_id", container)
        , new OmOrderByBorder<Room>("orderByName", "name", container)
        , new OmOrderByBorder<Room>("orderByPublic", "ispublic", container));
    add(container.orderLinks);
    add(navigator);

    final AjaxButton addModerator = new AjaxButton("addModerator") {
      private static final long serialVersionUID = 1L;
     
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            addModeratorsDialog.open(target);
      }
    };
   
    form = new RoomForm("form", listContainer, new Room()){
      private static final long serialVersionUID = 3186201157375166657L;

      @Override
      protected void onModelChanged() {
        super.onModelChanged();
View Full Code Here

    // TODO Auto-generated method stub
  }

  @Override
  protected void onNewSubmit(AjaxRequestTarget target, Form<?> form) {
    setModelObject(new Room());
    updateView(target);
  }
View Full Code Here

    // TODO Auto-generated method stub
  }

  @Override
  protected void onRefreshSubmit(AjaxRequestTarget target, Form<?> form) {
    Room r = getModelObject();
    if (r.getRooms_id() != null) {
      r = getBean(RoomDao.class).get(r.getRooms_id());
    } else {
      r = new Room();
    }
    setModelObject(r);
    updateView(target);
  }
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.