Class StoresController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseController
-
- de.hybris.platform.ycommercewebservices.v2.controller.StoresController
-
@Controller @RequestMapping("/{baseSiteId}/stores") public class StoresController extends BaseController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description StoresController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountStoreLocations(java.lang.String query, java.lang.Double latitude, java.lang.Double longitude, double radius, double accuracy, javax.servlet.http.HttpServletResponse response)StoreCountListWsDTOgetLocationCounts()PointOfServiceWsDTOgetStoreLocation(java.lang.String storeId, java.lang.String fields)StoreFinderSearchPageWsDTOgetStoreLocations(java.lang.String query, java.lang.Double latitude, java.lang.Double longitude, int currentPage, int pageSize, java.lang.String sort, double radius, double accuracy, java.lang.String fields, javax.servlet.http.HttpServletResponse response)PointOfServiceListWsDTOgetStoresByCountry(java.lang.String countryIso, java.lang.String fields)PointOfServiceListWsDTOgetStoresByCountryAndRegion(java.lang.String countryIso, java.lang.String regionIso, java.lang.String fields)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
-
-
-
Method Detail
-
getStoreLocations
@RequestMapping(method=GET) @ResponseBody public StoreFinderSearchPageWsDTO getStoreLocations(@RequestParam(required=false) java.lang.String query, @RequestParam(required=false) java.lang.Double latitude, @RequestParam(required=false) java.lang.Double longitude, @RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(defaultValue="asc") java.lang.String sort, @RequestParam(defaultValue="100000.0") double radius, @RequestParam(defaultValue="0.0") double accuracy, @RequestParam(defaultValue="DEFAULT") java.lang.String fields, javax.servlet.http.HttpServletResponse response)
-
getStoresByCountry
@RequestMapping(value="/country/{countryIso}", method=GET) @ResponseBody public PointOfServiceListWsDTO getStoresByCountry(@PathVariable java.lang.String countryIso, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
getStoresByCountryAndRegion
@RequestMapping(value="/country/{countryIso}/region/{regionIso}", method=GET) @ResponseBody public PointOfServiceListWsDTO getStoresByCountryAndRegion(@PathVariable java.lang.String countryIso, @PathVariable java.lang.String regionIso, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
countStoreLocations
@RequestMapping(method=HEAD) public void countStoreLocations(@RequestParam(required=false) java.lang.String query, @RequestParam(required=false) java.lang.Double latitude, @RequestParam(required=false) java.lang.Double longitude, @RequestParam(defaultValue="100000.0") double radius, @RequestParam(defaultValue="0.0") double accuracy, javax.servlet.http.HttpServletResponse response)
-
getStoreLocation
@RequestMapping(value="/{storeId}", method=GET) @ResponseBody public PointOfServiceWsDTO getStoreLocation(@PathVariable java.lang.String storeId, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
getLocationCounts
@RequestMapping(value="/storescounts", method=GET) @ResponseBody public StoreCountListWsDTO getLocationCounts()
-
-