Interface OrderHistoryService

All Known Implementing Classes:
OrderHistoryServiceImpl

public interface OrderHistoryService
Service for gathering previously completed orders
Author:
Jacob Mitash
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.core.order.domain.Order
    getOrderDetails(String orderNumber)
    Gathers an Order based on the given value
    void
    validateCustomerOwnedData(org.broadleafcommerce.core.order.domain.Order order)
    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 .
  • Method Details

    • getOrderDetails

      org.broadleafcommerce.core.order.domain.Order getOrderDetails(String orderNumber)
      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.

    • validateCustomerOwnedData

      void validateCustomerOwnedData(org.broadleafcommerce.core.order.domain.Order order) throws SecurityException
      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 .
      Throws:
      SecurityException