Class ReplenishmentOrderController
java.lang.Object
de.hybris.platform.b2b.occ.v2.controllers.BaseController
de.hybris.platform.b2b.occ.v2.controllers.ReplenishmentOrderController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/replenishmentOrders")
public class ReplenishmentOrderController
extends BaseController
-
Field Summary
Fields inherited from class de.hybris.platform.b2b.occ.v2.controllers.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 TypeMethodDescriptiongetReplenishmentOrder(String replenishmentOrderCode, String fields) getReplenishmentOrderHistory(int currentPage, int pageSize, String sort, String replenishmentOrderCode, String fields) getReplenishmentOrders(int currentPage, int pageSize, String sort, String fields) updateReplenishmentOrder(String replenishmentOrderCode, String fields) Methods inherited from class de.hybris.platform.b2b.occ.v2.controllers.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
ReplenishmentOrderController
public ReplenishmentOrderController()
-
-
Method Details
-
getReplenishmentOrders
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @GetMapping(produces="application/json") public ReplenishmentOrderListWsDTO getReplenishmentOrders(@RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(defaultValue="code") String sort, @RequestParam(defaultValue="DEFAULT") String fields) -
getReplenishmentOrder
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @GetMapping(value="/{replenishmentOrderCode}", produces="application/json") public ReplenishmentOrderWsDTO getReplenishmentOrder(@PathVariable String replenishmentOrderCode, @RequestParam(defaultValue="DEFAULT") String fields) -
updateReplenishmentOrder
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @PatchMapping(value="/{replenishmentOrderCode}", produces="application/json") public ReplenishmentOrderWsDTO updateReplenishmentOrder(@PathVariable String replenishmentOrderCode, @RequestParam(defaultValue="DEFAULT") String fields) -
getReplenishmentOrderHistory
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @GetMapping(value="/{replenishmentOrderCode}/orders", produces="application/json") public OrderHistoryListWsDTO getReplenishmentOrderHistory(@RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(defaultValue="code") String sort, @PathVariable String replenishmentOrderCode, @RequestParam(defaultValue="DEFAULT") String fields)
-