Class LogisticService

java.lang.Object
de.bytestore.hostinger.ecommerce.service.LogisticService

@Component @Service public class LogisticService extends Object
  • Constructor Details

    • LogisticService

      public LogisticService()
  • Method Details

    • query

      Executes a query for LogisticsResults using the given term.
      Parameters:
      termIO - the search term for the query (null values are ignored)
      Returns:
      an ArrayList of LogisticsResults matching the query
      Throws:
      Exception - if an error occurs during the query
    • combineEANs

      public ArrayList<LogisticsResult> combineEANs(ArrayList<LogisticsResultItem> productsIO)
      Combines the EANs of the given list of LogisticsProducts and calculates the highest and lowest prices for each EAN.
      Parameters:
      productsIO - the list of LogisticsProducts to combine
      Returns:
      a collection of LogisticsResults containing the combined EANs and their highest and lowest prices