Package org.openmeetings.app.persistence.beans.rooms

Examples of org.openmeetings.app.persistence.beans.rooms.Rooms_Organisation


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

    for (Iterator<Rooms_Organisation> it = roomOrganisations.iterator(); it.hasNext();) {
      Rooms_Organisation 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();) {
        Rooms_Organisation rOrg = (Rooms_Organisation) 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();) {
        Rooms_Organisation rOrg = (Rooms_Organisation) 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 {
      Rooms_Organisation rOrg = this
          .getRoomsOrganisationById(rooms_organisation_id);
      return this.deleteRoomsOrganisation(rOrg);
    } catch (Exception ex2) {
      log.error("[deleteRoomsOrganisationByID] ", ex2);
    }
View Full Code Here

  }

  private Long deleteRoomFromOrganisationByRoomAndOrganisation(long rooms_id,
      long organisation_id) {
    try {
      Rooms_Organisation rOrganisation = this
          .getRoomsOrganisationByOrganisationIdAndRoomId(
              organisation_id, rooms_id);
      return this.deleteRoomsOrganisation(rOrganisation);
    } catch (Exception ex2) {
      log.error("[deleteRoomFromOrganisationByRoomAndOrganisation] ", ex2);
View Full Code Here

    Element organisations = root.addElement("room_organisations");

    for (Iterator<Rooms_Organisation> it = roomOrgList.iterator(); it
        .hasNext();) {
      Rooms_Organisation roomOrg = it.next();

      Element room_organisation = organisations
          .addElement("room_organisation");

      room_organisation.addElement("rooms_organisation_id").addCDATA(
          formatString("" + roomOrg.getRooms_organisation_id()));
      room_organisation.addElement("organisation_id").addCDATA(
        "true".equals(roomOrg.getDeleted()) ? "0" :
        formatString(""
            + roomOrg.getOrganisation().getOrganisation_id()));
      if (roomOrg.getRoom() != null) {
        room_organisation.addElement("rooms_id").addCDATA(
            formatString("" + roomOrg.getRoom().getRooms_id()));
      } else {
        room_organisation.addElement("rooms_id").addCDATA("0");
      }
      room_organisation.addElement("deleted").addCDATA(
          formatString("" + roomOrg.getDeleted()));

    }

    return document;
  }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.rooms.Rooms_Organisation

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.