@Override public int compareTo(Address address) { return _address.compareTo(address); }
/** * Returns the address ID of this address. * * @return the address ID of this address */ @Override public long getAddressId() { return _address.getAddressId(); }
/** * Returns the city of this address. * * @return the city of this address */ @Override public String getCity() { return _address.getCity(); }
public static AddressSoap toSoapModel(Address model) { AddressSoap soapModel = new AddressSoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setUuid(model.getUuid()); soapModel.setAddressId(model.getAddressId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setUserName(model.getUserName()); soapModel.setCreateDate(model.getCreateDate()); soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setClassNameId(model.getClassNameId()); soapModel.setClassPK(model.getClassPK()); soapModel.setStreet1(model.getStreet1()); soapModel.setStreet2(model.getStreet2()); soapModel.setStreet3(model.getStreet3()); soapModel.setCity(model.getCity()); soapModel.setZip(model.getZip()); soapModel.setRegionId(model.getRegionId()); soapModel.setCountryId(model.getCountryId()); soapModel.setTypeId(model.getTypeId()); soapModel.setMailing(model.isMailing()); soapModel.setPrimary(model.isPrimary()); return soapModel; }
cities.add(StringUtil.toLowerCase(address.getCity())); countries.addAll(getLocalizedCountryNames(address.getCountry())); Region region = address.getRegion(); streets.add(StringUtil.toLowerCase(address.getStreet1())); streets.add(StringUtil.toLowerCase(address.getStreet2())); streets.add(StringUtil.toLowerCase(address.getStreet3())); zips.add(StringUtil.toLowerCase(address.getZip()));
return _personalAddress.getStreet1(); return _personalAddress.getCity(); Region region = _personalAddress.getRegion(); return _personalAddress.getZip(); Country country = _personalAddress.getCountry(); return _businessAddress.getStreet1(); return _businessAddress.getCity(); Region region = _businessAddress.getRegion(); return _businessAddress.getZip(); Country country = _businessAddress.getCountry();
@Override public Country getCountry() { return _address.getCountry(); }
/** * Returns the class name ID of this address. * * @return the class name ID of this address */ @Override public long getClassNameId() { return _address.getClassNameId(); }
/** * Returns the class pk of this address. * * @return the class pk of this address */ @Override public long getClassPK() { return _address.getClassPK(); }
/** * Returns the fully qualified class name of this address. * * @return the fully qualified class name of this address */ @Override public String getClassName() { return _address.getClassName(); }
/** * Returns the company ID of this address. * * @return the company ID of this address */ @Override public long getCompanyId() { return _address.getCompanyId(); }
/** * Returns the country ID of this address. * * @return the country ID of this address */ @Override public long getCountryId() { return _address.getCountryId(); }
@Override public Object clone() { return new AddressWrapper((Address)_address.clone()); }
@Override public String get(Organization organization) { Address address = organization.getAddress(); Country country = address.getCountry(); String countryName = country.getName( LocaleThreadLocal.getThemeDisplayLocale()); if (Validator.isNull(countryName)) { country = CountryServiceUtil.fetchCountry( organization.getCountryId()); if (country != null) { countryName = country.getName( LocaleThreadLocal.getThemeDisplayLocale()); } } return countryName; }
@Override public Long get(Address address) { return address.getAddressId(); }