Class CustomerOrderInfoEndpoint
java.lang.Object
com.broadleafcommerce.orderoperation.web.endpoint.CustomerOrderInfoEndpoint
@FrameworkRestController
@FrameworkMapping("/order-info")
public class CustomerOrderInfoEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCustomerOrderInfoEndpoint
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected OrderProvider<com.broadleafcommerce.order.client.domain.Order>
protected com.broadleafcommerce.common.extension.TypeFactory
org.springframework.data.domain.Page<CustomerOrderInfo>
readOrderInfoForAnonymousCustomer
(String customerEmail, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<CustomerOrderInfo>
readOrderInfoForCustomer
(String customerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
CustomerOrderInfoEndpoint
public CustomerOrderInfoEndpoint(com.broadleafcommerce.common.extension.TypeFactory typeFactory, OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider)
-
-
Method Details
-
readOrderInfoForCustomer
@Policy(permissionRoots="CUSTOMER_ORDER_INFO") @FrameworkGetMapping("/{customerId}") public org.springframework.data.domain.Page<CustomerOrderInfo> readOrderInfoForCustomer(@PathVariable("customerId") String customerId, @PageableDefault(sort="submitDate",direction=DESC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readOrderInfoForAnonymousCustomer
@Policy(permissionRoots="ANONYMOUS_CUSTOMER_ORDER_INFO", identityTypes=ANONYMOUS) @FrameworkGetMapping(value="/anonymous", params="email") public org.springframework.data.domain.Page<CustomerOrderInfo> readOrderInfoForAnonymousCustomer(@RequestParam("email") String customerEmail, @PageableDefault(sort="submitDate",direction=DESC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getOrderProvider
-