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 Details

    • ACTIVE_CUSTOMER_OWNERSHIP_ERROR_MESSAGE

      public static final String ACTIVE_CUSTOMER_OWNERSHIP_ERROR_MESSAGE
      See Also:
    • orderService

      protected org.broadleafcommerce.core.order.service.OrderService orderService
    • env

      @Autowired protected org.springframework.core.env.Environment env
  • Constructor Details

    • OrderHistoryServiceImpl

      public OrderHistoryServiceImpl()
  • Method Details

    • getOrderDetails

      public org.broadleafcommerce.core.order.domain.Order getOrderDetails(String orderNumber)
      Description copied from interface: OrderHistoryService
      Gathers an Order based on the given value

      If `validate.customer.owned.data` is true, then we must throw an exception to avoid giving the currently logged in Customer access to an order that they do not own.

      Specified by:
      getOrderDetails in interface OrderHistoryService
    • validateCustomerOwnedData

      public void validateCustomerOwnedData(org.broadleafcommerce.core.order.domain.Order order) throws SecurityException
      Description copied from interface: OrderHistoryService
      If is validation is enabled via the `validate.customer.owned.data` property, a SecurityException should be thrown if the current customer (CustomerState.getCustomer()) is not associated to the given .
      Specified by:
      validateCustomerOwnedData in interface OrderHistoryService
      Throws:
      SecurityException
    • shouldValidateCustomerOwnedData

      protected boolean shouldValidateCustomerOwnedData()