Class StoreFinderController
java.lang.Object
de.hybris.platform.ycommercewebservices.v1.controller.BaseController
de.hybris.platform.ycommercewebservices.v1.controller.StoreFinderController
-
Field Summary
Fields inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PageableDatacreatePagaable(int page, int pageSize, String sort) protected List<PointOfServiceData>filterOptions(String options, StoreFinderSearchPageData<PointOfServiceData> result) protected doublegetInKilometres(double radius, double accuracy) locationDetails(String name) locationSearch(String query, Double latitude, Double longitude, int currentPage, int pageSize, String sort, String options, double radius, double accuracy) Methods inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
handleErrorInternal, handleModelNotFoundException, sanitize
-
Constructor Details
-
StoreFinderController
public StoreFinderController()
-
-
Method Details
-
locationSearch
@RequestMapping(value="/{baseSiteId}/stores", method=GET) @ResponseBody public StoreFinderSearchPageData<PointOfServiceData> locationSearch(@RequestParam(required=false) String query, Double latitude, Double longitude, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="10") int pageSize, @RequestParam(required=false,defaultValue="asc") String sort, @RequestParam(required=false,defaultValue="BASIC") String options, @RequestParam(required=false,defaultValue="100000.0") double radius, @RequestParam(required=false,defaultValue="0.0") double accuracy) throws RequestParameterException - Throws:
RequestParameterException
-
locationDetails
@RequestMapping(value="/{baseSiteId}/stores/{name}", method=GET) @ResponseBody public PointOfServiceData locationDetails(@PathVariable String name) -
getInKilometres
protected double getInKilometres(double radius, double accuracy) -
filterOptions
protected List<PointOfServiceData> filterOptions(String options, StoreFinderSearchPageData<PointOfServiceData> result) -
createPagaable
-