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

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


    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());
    }
    r = roomDao.update(r, null);
    return r;
  }
View Full Code Here


    add(new CheckBox("ispublic"));

    List<Organisation> orgList = Application.getBean(OrganisationDao.class).get(0, Integer.MAX_VALUE);
    List<RoomOrganisation> orgRooms = new ArrayList<RoomOrganisation>(orgList.size());
    for (Organisation org : orgList) {
      orgRooms.add(new RoomOrganisation(org));
    }
    ListMultipleChoice<RoomOrganisation> orgChoiceList = new ListMultipleChoice<RoomOrganisation>(
        "roomOrganisations", orgRooms,
        new ChoiceRenderer<RoomOrganisation>("organisation.name",
            "organisation.organisation_id"));
View Full Code Here

      List<RoomOrganisation> filtered = new ArrayList<RoomOrganisation>();

      for (Iterator<RoomOrganisation> iter = roomOrgsList.iterator(); iter
          .hasNext();) {
        RoomOrganisation orgRoom = iter.next();

        if (!orgRoom.getRoom().getAppointment()) {
          orgRoom.getRoom().setCurrentusers(
              this.getRoomClientsListByRoomId(orgRoom.getRoom()
                  .getRooms_id()));
          filtered.add(orgRoom);
        }
      }
      return filtered;
View Full Code Here

   */
  public Long addRoomToOrganisation(long user_level, long rooms_id,
      long organisation_id) {
    try {
      if (AuthLevelUtil.checkAdminLevel(user_level)) {
        RoomOrganisation rOrganisation = new RoomOrganisation();
        rOrganisation.setRoom(roomDao.get(rooms_id));
        log.debug("addRoomToOrganisation rooms '"
            + rOrganisation.getRoom().getName() + "'");
        rOrganisation.setStarttime(new Date());
        rOrganisation.setOrganisation(organisationManager
            .getOrganisationById(organisation_id));
        rOrganisation.setDeleted(false);

        rOrganisation = em.merge(rOrganisation);
        long returnId = rOrganisation.getRooms_organisation_id();
        return returnId;
      }
    } catch (Exception ex2) {
      log.error("[addRoomToOrganisation] ", ex2);
    }
View Full Code Here

        List<RoomOrganisation> ll = this
            .getRoomsOrganisationByOrganisationId(3,
                organisation_id);
        for (Iterator<RoomOrganisation> it2 = ll.iterator(); it2
            .hasNext();) {
          RoomOrganisation roomOrg = it2.next();
          if (roomOrg.getRoom().getRooms_id() == rooms_id) {
            return true;
          }
        }
      }
View Full Code Here

  @SuppressWarnings("rawtypes")
  private boolean checkRoomAlreadyInOrg(Long orgid, List organisations)
      throws Exception {
    for (Iterator it = organisations.iterator(); it.hasNext();) {
      RoomOrganisation rOrganisation = (RoomOrganisation) it.next();
      if (rOrganisation.getOrganisation().getOrganisation_id()
          .equals(orgid))
        return true;
    }
    return false;
  }
View Full Code Here

      if (!this.checkRoomAlreadyInOrg(orgIdToAdd, roomOrganisations))
        roomsToAdd.add(orgIdToAdd);
    }

    for (Iterator<RoomOrganisation> it = roomOrganisations.iterator(); it.hasNext();) {
      RoomOrganisation rOrganisation = it.next();
      Long orgIdToDel = rOrganisation.getOrganisation()
          .getOrganisation_id();
      if (!this.checkRoomShouldByDeleted(orgIdToDel, organisations))
        roomsToDel.add(orgIdToDel);
    }
View Full Code Here

  @SuppressWarnings("rawtypes")
  public void deleteAllRoomsOrganisationOfRoom(long rooms_id) {
    try {
      List ll = this.getRoomsOrganisationByRoomsId(rooms_id);
      for (Iterator it = ll.iterator(); it.hasNext();) {
        RoomOrganisation rOrg = (RoomOrganisation) it.next();
        this.deleteRoomsOrganisation(rOrg);
      }
    } catch (Exception ex2) {
      log.error("[deleteAllRoomsOrganisationOfRoom] ", ex2);
    }
View Full Code Here

  public void deleteAllRoomsOrganisationOfOrganisation(long organisation_id) {
    try {
      List ll = this.getRoomsOrganisationByOrganisationId(3,
          organisation_id);
      for (Iterator it = ll.iterator(); it.hasNext();) {
        RoomOrganisation rOrg = (RoomOrganisation) it.next();
        this.deleteRoomsOrganisation(rOrg);
      }
    } catch (Exception ex2) {
      log.error("[deleteAllRoomsOfOrganisation] ", ex2);
    }
View Full Code Here

   *
   * @param rooms_organisation_id
   */
  public Long deleteRoomsOrganisationByID(long rooms_organisation_id) {
    try {
      RoomOrganisation rOrg = this
          .getRoomsOrganisationById(rooms_organisation_id);
      return this.deleteRoomsOrganisation(rOrg);
    } catch (Exception ex2) {
      log.error("[deleteRoomsOrganisationByID] ", ex2);
    }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.room.RoomOrganisation

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.