Class OrderHistoryEndpoint
- java.lang.Object
-
- com.broadleafcommerce.orderoperation.web.endpoint.OrderHistoryEndpoint
-
@FrameworkRestController @FrameworkMapping("/order-history") public class OrderHistoryEndpoint extends Object
Endpoint for viewingOrder
history for a customer.
-
-
Constructor Summary
Constructors Constructor Description OrderHistoryEndpoint(OrderHistoryService<com.broadleafcommerce.order.client.domain.Order,OrderWithFulfillmentsAndReturns> orderHistoryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrderHistoryService<com.broadleafcommerce.order.client.domain.Order,OrderWithFulfillmentsAndReturns>
getOrderHistoryService()
OrderWithFulfillmentsAndReturns
readOrderByIdOrNumber(String orderRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
org.springframework.data.domain.Page<OrderWithFulfillmentsAndReturns>
readOrderHistoryForCustomer(Integer days, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
-
Field Detail
-
BASE_URI
public static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderHistoryEndpoint
public OrderHistoryEndpoint(OrderHistoryService<com.broadleafcommerce.order.client.domain.Order,OrderWithFulfillmentsAndReturns> orderHistoryService)
-
-
Method Detail
-
readOrderHistoryForCustomer
@Policy(permissionRoots="CUSTOMER_ORDER", identityTypes=OWNER) @FrameworkGetMapping public org.springframework.data.domain.Page<OrderWithFulfillmentsAndReturns> readOrderHistoryForCustomer(@RequestParam(required=false) Integer days, @PageableDefault(sort="submitDate",direction=DESC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
readOrderByIdOrNumber
@Policy(permissionRoots="CUSTOMER_ORDER", identityTypes=OWNER) @FrameworkGetMapping("/{orderRef}") public OrderWithFulfillmentsAndReturns readOrderByIdOrNumber(@PathVariable("orderRef") String orderRef, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
getOrderHistoryService
protected OrderHistoryService<com.broadleafcommerce.order.client.domain.Order,OrderWithFulfillmentsAndReturns> getOrderHistoryService()
-
-