Package com.vst.model.ext

Examples of com.vst.model.ext.Building


    return dto;
  }

  @SuppressWarnings("unchecked")
  public BuildingFormDto getBuildingForForm(Integer buildingKey) {
    Building building = gatewayDao.getBuilding(buildingKey);
    if (building==null){
      throw new IllegalArgumentException("Building with id=" + buildingKey +" not found.");
    }
    List<?> countries = getCountryList();
    List<?> provinces = getProvinceListForCountry();
    GeoClassificator ancestor = new GeoClassificator();
    ancestor.setId(building.getAddress().getProvince().getId());
    List<?> cities = getCityListForAncestor(ancestor);

    List<?> objectTypes = getObjectTypesList();
    List<?> dangerCategories = getDangerCategoriesList();
    Organization org = getOrganization(building.getBuildingowner().getId());

    BuildingFormDto dto = new BuildingFormDto();
    dto.setBuilding(building);
    dto.setCustomer(org);
    dto.setCities((List<GeoClassificator>) cities);
View Full Code Here


            List<?> qlist = q.list();

            return qlist;
          }
        });
    Building res = null;
    if (!qres.isEmpty()) {
      res = (Building) qres.get(0);
    }

    return res;
View Full Code Here

TOP

Related Classes of com.vst.model.ext.Building

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.