Class StoreFinderController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v1.controller.BaseController
-
- de.hybris.platform.ycommercewebservices.v1.controller.StoreFinderController
-
@Controller("storeFinderControllerV1") public class StoreFinderController extends BaseController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE
-
-
Constructor Summary
Constructors Constructor Description StoreFinderController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PageableDatacreatePagaable(int page, int pageSize, java.lang.String sort)protected java.util.List<PointOfServiceData>filterOptions(java.lang.String options, StoreFinderSearchPageData<PointOfServiceData> result)protected doublegetInKilometres(double radius, double accuracy)PointOfServiceDatalocationDetails(java.lang.String name)StoreFinderSearchPageData<PointOfServiceData>locationSearch(java.lang.String query, java.lang.Double latitude, java.lang.Double longitude, int currentPage, int pageSize, java.lang.String sort, java.lang.String options, double radius, double accuracy)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
handleErrorInternal, handleModelNotFoundException, sanitize
-
-
-
-
Method Detail
-
locationSearch
@RequestMapping(value="/{baseSiteId}/stores", method=GET) @ResponseBody public StoreFinderSearchPageData<PointOfServiceData> locationSearch(@RequestParam(required=false) java.lang.String query, java.lang.Double latitude, java.lang.Double longitude, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="10") int pageSize, @RequestParam(required=false,defaultValue="asc") java.lang.String sort, @RequestParam(required=false,defaultValue="BASIC") java.lang.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 java.lang.String name)
-
getInKilometres
protected double getInKilometres(double radius, double accuracy)
-
filterOptions
protected java.util.List<PointOfServiceData> filterOptions(java.lang.String options, StoreFinderSearchPageData<PointOfServiceData> result)
-
createPagaable
protected PageableData createPagaable(int page, int pageSize, java.lang.String sort)
-
-