Class DefaultFutureStockService

  • All Implemented Interfaces:
    FutureStockService

    public class DefaultFutureStockService
    extends java.lang.Object
    implements FutureStockService
    Default implementation for FutureStockService, just to avoid problems with Spring initialization. This service will just return dummy values. To have a service that actually returns future availability information, please use another implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.Map<java.util.Date,​java.lang.Integer>> getFutureAvailability​(java.util.List<ProductModel> products)
      Gets the future product availability for the specified products, for each future date.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultFutureStockService

        public DefaultFutureStockService()
    • Method Detail

      • getFutureAvailability

        public java.util.Map<java.lang.String,​java.util.Map<java.util.Date,​java.lang.Integer>> getFutureAvailability​(java.util.List<ProductModel> products)
        Description copied from interface: FutureStockService
        Gets the future product availability for the specified products, for each future date.
        Specified by:
        getFutureAvailability in interface FutureStockService
        Parameters:
        products - the list of products
        Returns:
        A map of quantity for each available date for each product in the list.