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

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


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

   * Delete a Rooms_Organisation by its id
   * @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);
    }
    return null;
View Full Code Here

    return null;
  }
 
  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);
    }
    return null;
View Full Code Here

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

      for (Iterator<Rooms_Organisation> iter = roomOrgsList.iterator(); iter
          .hasNext();) {
        Rooms_Organisation 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

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

      for (Iterator<Rooms_Organisation> iter = roomOrgsList.iterator(); iter
          .hasNext();) {
        Rooms_Organisation 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

                    .element("rooms_id").getText())),
                Maps.ROOMS);
            String deleted = unformatString(orgRoomObject.element(
                "deleted").getText());

            Rooms_Organisation rooms_Organisation = new Rooms_Organisation();
            rooms_Organisation
                .setRooms_organisation_id(rooms_organisation_id);
            rooms_Organisation
                .setOrganisation(organisationmanagement
                    .getOrganisationById(organisation_id));
            rooms_Organisation.setRoom(roommanagement
                .getRoomById(rooms_id));
            rooms_Organisation.setDeleted(deleted);

            orgRoomList.add(rooms_Organisation);

          }
View Full Code Here

   */
  public Long addRoomToOrganisation(long user_level, long rooms_id,
      long organisation_id) {
    try {
      if (authLevelManagement.checkAdminLevel(user_level)) {
        Rooms_Organisation rOrganisation = new Rooms_Organisation();
        rOrganisation.setRoom(this.getRoomById(rooms_id));
        log.debug("addRoomToOrganisation rooms '"
            + rOrganisation.getRoom().getName() + "'");
        rOrganisation.setStarttime(new Date());
        rOrganisation.setOrganisation(organisationmanagement
            .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<Rooms_Organisation> ll = this
            .getRoomsOrganisationByOrganisationId(3,
                organisation_id);
        for (Iterator<Rooms_Organisation> it2 = ll.iterator(); it2
            .hasNext();) {
          Rooms_Organisation 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();) {
      Rooms_Organisation rOrganisation = (Rooms_Organisation) it.next();
      if (rOrganisation.getOrganisation().getOrganisation_id()
          .equals(orgid))
        return true;
    }
    return false;
  }
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.