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

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


  @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(false);
      r.setAllowUserQuestions(true);
      r.setAllowFontStyles(true);
      r = getBean(RoomDao.class).update(r, getUserId());
      p.setRoom(r);
    } else {
      p.setRoom(null);
    }
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

    }
    return null;
  }

  public Appointment update(Appointment a, 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

    roomTypeDao.addRoomType("custom", -2, true);
    log.debug("RoomTypes ADDED");
  }

  private Room createRoom(String name, long typeId, long capacity, boolean isPublic, Long orgId) {
    Room r = new Room();
    r.setName(name);
    r.setComment("");
    r.setStarttime(new Date());
    r.setNumberOfPartizipants(capacity);
    r.setRoomtype(roomTypeDao.get(typeId));
    r.setIspublic(isPublic);
    r.setAllowUserQuestions(true);
    r.setIsAudioOnly(false);
    r.setAllowFontStyles(true);

    r.setAppointment(false);

    r.setIsDemoRoom(false);
    r.setDemoTime(null);

    r.setIsModeratedRoom(false);
    r.setHideTopBar(false);

    r.setDeleted(false);

    r.setIsClosed(false);
    r.setRedirectURL(null);

    r.setOwnerId(null);

    r.setWaitForRecording(false);
    r.setAllowRecording(true);
   
    r.setHideChat(false);
    r.setHideActivitiesAndActions(false);
    r.setHideActionsMenu(false);
    r.setHideFilesExplorer(false);
    r.setHideScreenSharing(false)
    r.setHideWhiteboard(false);
    if (orgId != null) {
      RoomOrganisation ro = new RoomOrganisation();
      ro.setRoom(r);
      ro.setOrganisation(organisationDao.get(orgId));
      ro.setStarttime(new Date());
View Full Code Here

      long restricted_Id = 3;
      long interview_Id = 4;

      createRoom("public Interview Room", interview_Id, 16L, true, null);
      createRoom("public Conference Room", conference_Id, 32L, true, null);
      Room r = createRoom("public Video Only Room", conference_Id, 32L, true, null);
      r.setHideWhiteboard(true);
      roomDao.update(r, null);
      createRoom("public Video And Whiteboard Room", conference_Id, 32L, true, null);
      createRoom("public Restricted Room", restricted_Id, 100L, true, null);
      r = createRoom("restricted room with micro option set", restricted_Id, 100L, true, null);
      r.setShowMicrophoneStatus(true);
      roomDao.update(r, null);

      r = createRoom("conference room with micro option set", conference_Id, 32L, true, null);
      r.setShowMicrophoneStatus(true);
      roomDao.update(r, null);

      createRoom("private Conference Room", conference_Id, 32L, false, 1L);
    }
  }
View Full Code Here

      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

    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

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.