Package com.vst.model.ext

Examples of com.vst.model.ext.Organization


    return  res;
  }

  @SuppressWarnings("unchecked")
  public CustomerFormDto getCustomerForForm(Integer customerKey){
    Organization  org = gatewayDao.getCustomer(customerKey);
    if (org==null){
      throw new IllegalArgumentException("Customer with id=" + customerKey +" not found.");
    }
    List<?> countries = getCountryList();
    List<?> provinces = getProvinceListForCountry();
    GeoClassificator ancestor = new GeoClassificator();
    ancestor.setId(org.getAddress().getProvince().getId());
    List<?> cities = getCityListForAncestor(ancestor);
    List<?> contacts = getContactsList(extractKeys(org.getContacts()));

    CustomerFormDto dto = new CustomerFormDto();
    dto.setCities((List<GeoClassificator>) cities);
    dto.setCountries((List<GeoClassificator>) countries);
    dto.setProvincies((List<GeoClassificator>) provinces);
View Full Code Here


    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;
          }
        });
    Organization res = null;
    if (!qres.isEmpty()) {
      res = (Organization) qres.get(0);
    }

    return res;
View Full Code Here

TOP

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

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.