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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcountStoreLocations(String query, Double latitude, Double longitude, double radius, double accuracy, javax.servlet.http.HttpServletResponse response) getStoreLocation(String storeId, String fields) getStoreLocations(String query, Double latitude, Double longitude, int currentPage, int pageSize, String sort, double radius, double accuracy, String fields, javax.servlet.http.HttpServletResponse response) getStoresByCountry(String countryIso, String fields) getStoresByCountryAndRegion(String countryIso, String regionIso, 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
-
Constructor Details
-
StoresController
public StoresController()
-
-
Method Details
-
getStoreLocations
@RequestMapping(method=GET) @ResponseBody public StoreFinderSearchPageWsDTO getStoreLocations(@RequestParam(required=false) String query, @RequestParam(required=false) Double latitude, @RequestParam(required=false) Double longitude, @RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(defaultValue="asc") String sort, @RequestParam(defaultValue="100000.0") double radius, @RequestParam(defaultValue="0.0") double accuracy, @RequestParam(defaultValue="DEFAULT") String fields, javax.servlet.http.HttpServletResponse response) -
getStoresByCountry
@RequestMapping(value="/country/{countryIso}", method=GET) @ResponseBody public PointOfServiceListWsDTO getStoresByCountry(@PathVariable String countryIso, @RequestParam(defaultValue="DEFAULT") String fields) -
getStoresByCountryAndRegion
@RequestMapping(value="/country/{countryIso}/region/{regionIso}", method=GET) @ResponseBody public PointOfServiceListWsDTO getStoresByCountryAndRegion(@PathVariable String countryIso, @PathVariable String regionIso, @RequestParam(defaultValue="DEFAULT") String fields) -
countStoreLocations
@RequestMapping(method=HEAD) public void countStoreLocations(@RequestParam(required=false) String query, @RequestParam(required=false) Double latitude, @RequestParam(required=false) 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 String storeId, @RequestParam(defaultValue="DEFAULT") String fields) -
getLocationCounts
@RequestMapping(value="/storescounts", method=GET) @ResponseBody public StoreCountListWsDTO getLocationCounts()
-