Class ExportController
java.lang.Object
de.hybris.platform.commercewebservices.core.v2.controller.BaseController
de.hybris.platform.commercewebservices.core.v2.controller.ExportController
@Controller
@RequestMapping("/{baseSiteId}/export/products")
public class ExportController
extends BaseController
Web Services Controller to expose the functionality of the
ProductFacade and SearchFacade.-
Field Summary
Fields inherited from class de.hybris.platform.commercewebservices.core.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 TypeMethodDescriptionprotected ProductDataListconvertResultset(int page, int pageSize, String catalog, String version, ProductResultData modifiedProducts) protected ProductListWsDTOfullExport(String fields, int currentPage, int pageSize, String catalog, String version) getExportedProducts(int currentPage, int pageSize, String catalog, String version, String timestamp, String fields) protected ProductListWsDTOincrementalExport(String fields, int currentPage, int pageSize, String catalog, String version, String timestamp) Methods inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
ExportController
public ExportController()
-
-
Method Details
-
getExportedProducts
@Secured("ROLE_TRUSTED_CLIENT") @RequestMapping(method=GET) @ResponseBody public ProductListWsDTO getExportedProducts(@RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(required=false) String catalog, @RequestParam(required=false) String version, @RequestParam(required=false) String timestamp, @RequestParam(required=false,defaultValue="DEFAULT") String fields) -
incrementalExport
protected ProductListWsDTO incrementalExport(String fields, int currentPage, int pageSize, String catalog, String version, String timestamp) -
fullExport
protected ProductListWsDTO fullExport(String fields, int currentPage, int pageSize, String catalog, String version) -
convertResultset
protected ProductDataList convertResultset(int page, int pageSize, String catalog, String version, ProductResultData modifiedProducts)
-