Interface OrderHistoryService

All Known Implementing Classes:
OrderHistoryServiceImpl

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

    • getOrderDetails

      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(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