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

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


      if (currentModList.size() > 0) {
        return 2L;
      } else {
        // No moderator in this room at the moment
        Room room = roomDao.get(currentClient.getRoom_id());

        if (room.getIsModeratedRoom()) {
          return 3L;
        } else {
          return 1L;
        }
      }
View Full Code Here


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

                .getDateWithTimeByMiliSeconds(appointmentstart));
        log.info("validToDate: "
            + CalendarPatterns
                .getDateWithTimeByMiliSeconds(appointmentend));

        Room room = null;

        String baseURL = "http://" + domain + ":" + port + webapp;
        if (port.equals("80")) {
          baseURL = "http://" + domain + webapp;
        } else if (port.equals("443")) {
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();
        item.add(new Label("roomName", r.getName()));
        final IModel<Integer> curUsersModel = new Model<Integer>(Application.getBean(SessionManager.class).getClientListByRoom(r.getRooms_id()).size());
        final Label curUsers = new Label("curUsers", curUsersModel);
        item.add(curUsers.setOutputMarkupId(true));
        item.add(new Label("totalUsers", r.getNumberOfPartizipants()));
        item.add(new AjaxLink<Void>("refresh") {
          private static final long serialVersionUID = -3426813755917489787L;

          @Override
          public void onClick(AjaxRequestTarget target) {
            curUsersModel.setObject(Application.getBean(SessionManager.class).getClientListByRoom(r.getRooms_id()).size());
            target.add(curUsers);
          }
        });
      }
    });
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.setModelObject(room);
            form.hideNewRecord();
            target.add(form);
            target.appendJavaScript("omRoomPanelInit();");
          }
        });
        item.add(AttributeModifier.replace("class", (item.getIndex() % 2 == 1) ? "even" : "odd"));
      }
    };
   
    final WebMarkupContainer listContainer = new WebMarkupContainer("listContainer");
    add(listContainer.add(dataView).setOutputMarkupId(true));
    DataViewContainer<Room> container = new DataViewContainer<Room>(listContainer, dataView);
    container.setLinks(new OrderByBorder<Room>("orderById", "rooms_id", container)
        , new OrderByBorder<Room>("orderByName", "name", container)
        , new OrderByBorder<Room>("orderByPublic", "ispublic", container));
    add(container.orderLinks);
    add(new PagedEntityListPanel("navigator", dataView) {
      private static final long serialVersionUID = -1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        target.add(listContainer);
      }
    });
   
    form = new RoomForm("form", new Room());
    form.showNewRecord();
        add(form);
   
  }
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

    try {
      if (authLevelUtil.checkModLevel(user_level)) {

        if (this.checkUserOrgRoom(user_id, rooms_id)) {

          Room r = roomDao.get(rooms_id);
          r.setComment(comment);
          r.setIspublic(ispublic);
          r.setName(name);
          r.setRoomtype(this.getRoomTypesById(roomtypes_id));
          r.setUpdatetime(new Date());

          if (r.getRooms_id() == null) {
            em.persist(r);
          } else {
            if (!em.contains(r)) {
              em.merge(r);
            }
View Full Code Here

      Boolean showMicrophoneStatus, Boolean chatModerated, boolean chatOpened, boolean filesOpened
      , boolean autoVideoSelect, boolean sipEnabled) {
    try {
      log.debug("*** updateRoom numberOfPartizipants: "
          + numberOfPartizipants);
      Room r = roomDao.get(rooms_id);
      r.setComment(comment);

      r.setIspublic(ispublic);
      r.setNumberOfPartizipants(numberOfPartizipants);
      r.setName(name);
      r.setRoomtype(this.getRoomTypesById(roomtypes_id));
      r.setUpdatetime(new Date());
      r.setAllowUserQuestions(allowUserQuestions);
      r.setIsAudioOnly(isAudioOnly);
      r.setAllowFontStyles(allowFontStyles);

      r.setIsDemoRoom(isDemoRoom);
      r.setDemoTime(demoTime);

      r.setAppointment(appointment);

      r.setIsModeratedRoom(isModeratedRoom);
      r.setHideTopBar(hideTopBar);

      r.setIsClosed(isClosed);
      r.setRedirectURL(redirectURL);
      r.setOwnerId(ownerId);
      r.setWaitForRecording(waitForRecording);
      r.setAllowRecording(allowRecording);
     
      r.setHideChat(hideChat);
      r.setHideActivitiesAndActions(hideActivitiesAndActions);
      r.setHideActionsMenu(hideActionsMenu);
      r.setHideFilesExplorer(hideFilesExplorer);
      r.setHideScreenSharing(hideScreenSharing);
      r.setHideWhiteboard(hideWhiteboard);
      r.setShowMicrophoneStatus(showMicrophoneStatus);
      r.setChatModerated(chatModerated);
      r.setChatOpened(chatOpened);
      r.setFilesOpened(filesOpened);
      r.setAutoVideoSelect(autoVideoSelect);
      r.setPin(conferencePin);
      r.setSipEnabled(sipEnabled);
      roomDao.update(r, ownerId);

      if (organisations != null) {
        Long t = this.updateRoomOrganisations(organisations, r);
        if (t == null)
          return null;
      }
      if (roomModerators != null) {
        roomModeratorsDao.updateRoomModeratorByUserList(roomModerators,
            r.getRooms_id());
      }

      return r.getRooms_id();
    } catch (Exception ex2) {
      log.error("[updateRoom] ", ex2);
    }
    return null;
  }
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.