Class OrderHistoryServiceImpl
java.lang.Object
org.broadleafcommerce.core.web.service.OrderHistoryServiceImpl
- All Implemented Interfaces:
OrderHistoryService
@Service("blOrderHistoryService")
public class OrderHistoryServiceImpl
extends Object
implements OrderHistoryService
- Author:
- Jacob Mitash
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.springframework.core.env.Environmentprotected OrderService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrderDetails(String orderNumber) Gathers anOrderbased on the given valueprotected booleanvoidvalidateCustomerOwnedData(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 .
-
Field Details
-
ACTIVE_CUSTOMER_OWNERSHIP_ERROR_MESSAGE
- See Also:
-
orderService
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
OrderHistoryServiceImpl
public OrderHistoryServiceImpl()
-
-
Method Details
-
getOrderDetails
Description copied from interface:OrderHistoryServiceGathers 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.- Specified by:
getOrderDetailsin interfaceOrderHistoryService
-
validateCustomerOwnedData
Description copied from interface:OrderHistoryServiceIf 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 .- Specified by:
validateCustomerOwnedDatain interfaceOrderHistoryService- Throws:
SecurityException
-
shouldValidateCustomerOwnedData
protected boolean shouldValidateCustomerOwnedData()
-