de.alpharogroup.address.book.rest.AddressesRestResource Maven / Gradle / Ivy
The newest version!
package de.alpharogroup.address.book.rest;
import java.util.List;
import de.alpharogroup.address.book.domain.Address;
import de.alpharogroup.address.book.domain.Country;
import de.alpharogroup.address.book.domain.Zipcode;
import de.alpharogroup.address.book.rest.api.AddressesResource;
import de.alpharogroup.address.book.service.api.AddressService;
import de.alpharogroup.service.rs.AbstractRestfulResource;
/**
* The class {@link AddressesRestResource} provides an implementation of the inteface {@link AddressesResource}.
*/
public class AddressesRestResource extends AbstractRestfulResource
implements AddressesResource
{
/**
* {@inheritDoc}
*/
public List find(String geohash) {
List addresses = getDomainService().find(geohash);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List findNeighbourhood(String geohash) {
List addresses = getDomainService().findNeighbourhood(geohash);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List findFirstRingNeighbourhood(String geohash) {
List addresses = getDomainService().findFirstRingNeighbourhood(geohash);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List findFirstAndSecondRingNeighbourhood(String geohash) {
List addresses = getDomainService().findFirstAndSecondRingNeighbourhood(geohash);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List find(String latitude, String longitude) {
List addresses = getDomainService().find(latitude, longitude);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public Address contains(String latitude, String longitude) {
return getDomainService().contains(latitude, longitude);
}
/**
* {@inheritDoc}
*/
@Override
public Address contains(Zipcode zipcode) {
return getDomainService().contains(zipcode);
}
/**
* {@inheritDoc}
*/
@Override
public List find(Zipcode zipcode) {
return getDomainService().find(zipcode);
}
/**
* {@inheritDoc}
*/
@Override
public List findAllAddressesWithCountry(Country country) {
List zipcodes = getDomainService().findAllAddressesWithCountry(country);
return zipcodes;
}
/**
* {@inheritDoc}
*/
@Override
public List findAll(Country country) {
List addresses = getDomainService().findAll(country);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List findGeohashIsNull() {
List addresses = getDomainService().findGeohashIsNull();
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List find(Country country, String zipcode) {
List addresses = getDomainService().find(country, zipcode);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public List find(Country country, String zipcode, String city) {
List addresses = getDomainService().find(country, zipcode, city);
return addresses;
}
/**
* {@inheritDoc}
*/
@Override
public Address findFirst(Country country, String zipcode) {
return getDomainService().findFirst(country, zipcode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy