Interface OrderHistoryService
- All Known Implementing Classes:
OrderHistoryServiceImpl
public interface OrderHistoryService
Service for gathering previously completed orders
- Author:
- Jacob Mitash
-
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.core.order.domain.OrdergetOrderDetails(String orderNumber) Gathers anOrderbased on the given valuevoidvalidateCustomerOwnedData(org.broadleafcommerce.core.order.domain.Order order) If is validation is enabled via the `validate.customer.owned.data` property, aSecurityExceptionshould be thrown if the current customer (CustomerState.getCustomer()) is not associated to the given .
-
Method Details
-
getOrderDetails
Gathers anOrderbased on the given valueIf `validate.customer.owned.data` is true, then we must throw an exception to avoid giving the currently logged in
Customeraccess to an order that they do not own. -
validateCustomerOwnedData
void validateCustomerOwnedData(org.broadleafcommerce.core.order.domain.Order order) throws SecurityException If is validation is enabled via the `validate.customer.owned.data` property, aSecurityExceptionshould be thrown if the current customer (CustomerState.getCustomer()) is not associated to the given .- Throws:
SecurityException
-