public class ZipcodesRestResource extends de.alpharogroup.service.rs.AbstractRestfulResource<Integer,de.alpharogroup.address.book.domain.Zipcode,de.alpharogroup.address.book.service.api.ZipcodeService> implements ZipcodesResource
ZipcodesRestResource provides an implementation of the inteface
ZipcodesResource.| Constructor and Description |
|---|
ZipcodesRestResource() |
| Modifier and Type | Method and Description |
|---|---|
Response |
existsZipcode(String zipcode)
Checks if the given zipcode string exists.
|
List<de.alpharogroup.address.book.domain.Zipcode> |
find(de.alpharogroup.address.book.domain.Country country)
Finds all
Zipcode from the given Country object. |
List<de.alpharogroup.address.book.domain.Zipcode> |
findAll(de.alpharogroup.collections.pairs.Triple<de.alpharogroup.address.book.domain.Country,String,String> searchCriteria)
Gets a List of
Zipcode with the given parameters that can be null if they shell be
ignored in the query. |
de.alpharogroup.address.book.domain.Zipcode |
findCityFromZipcode(de.alpharogroup.collections.pairs.KeyValuePair<de.alpharogroup.address.book.domain.Country,String> countryWithZipcode)
Find the
Zipcode to resolve the city from the given Country object and
zipcode string encapsulated as a KeyValuePair object as parameter. |
List<de.alpharogroup.address.book.domain.Zipcode> |
findZipcodes(String zipcode)
Find
Zipcode objects from the given zipcode string. |
de.alpharogroup.address.book.domain.Zipcode |
getZipcode(String zipcode,
String city)
Gets the
Zipcode object from the given zipcode string and city. |
create, delete, getDomainService, read, setDomainService, updatepublic Response existsZipcode(String zipcode)
existsZipcode in interface ZipcodesResourcezipcode - the zipcodepublic List<de.alpharogroup.address.book.domain.Zipcode> find(de.alpharogroup.address.book.domain.Country country)
Zipcode from the given Country object.find in interface ZipcodesResourcecountry - the countryZipcodepublic List<de.alpharogroup.address.book.domain.Zipcode> findAll(de.alpharogroup.collections.pairs.Triple<de.alpharogroup.address.book.domain.Country,String,String> searchCriteria)
Zipcode with the given parameters that can be null if they shell be
ignored in the query.findAll in interface ZipcodesResourcesearchCriteria - the search criteriaZipcode objectspublic de.alpharogroup.address.book.domain.Zipcode findCityFromZipcode(de.alpharogroup.collections.pairs.KeyValuePair<de.alpharogroup.address.book.domain.Country,String> countryWithZipcode)
Zipcode to resolve the city from the given Country object and
zipcode string encapsulated as a KeyValuePair object as parameter.findCityFromZipcode in interface ZipcodesResourcecountryWithZipcode - the KeyValuePair object that encapsulate the country with the zipcodeZipcode objectpublic List<de.alpharogroup.address.book.domain.Zipcode> findZipcodes(String zipcode)
Zipcode objects from the given zipcode string.findZipcodes in interface ZipcodesResourcezipcode - the zipcodeZipcodepublic de.alpharogroup.address.book.domain.Zipcode getZipcode(String zipcode, String city)
Zipcode object from the given zipcode string and city. If it does not exist
it will be create a new Zipcode object.getZipcode in interface ZipcodesResourcezipcode - the zipcodecity - the cityZipcodeCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.