Class DefaultSourcingService

  • All Implemented Interfaces:
    SourcingService

    public class DefaultSourcingService
    extends java.lang.Object
    implements SourcingService
    Service to evaluate the best way to source an order using some defined sourcing strategies. Its result will determine the number of consignments to create.
    • Constructor Detail

      • DefaultSourcingService

        public DefaultSourcingService()
    • Method Detail

      • sourceOrder

        public SourcingResults sourceOrder​(AbstractOrderModel order)
        Description copied from interface: SourcingService
        Evaluate the best way to source an order using some defined sourcing strategies.
        Specified by:
        sourceOrder in interface SourcingService
        Parameters:
        order - - the order to be sourced; never null
        Returns:
        the sourcing results indicating if the order can be completely sourced or not and from which locations.
      • setSourcingContextFactory

        public void setSourcingContextFactory​(SourcingContextFactory sourcingContextFactory)
      • setSourcingFilterProcessor

        public void setSourcingFilterProcessor​(SourcingFilterProcessor sourcingFilterProcessor)
      • setOrderEntryGroupingService

        public void setOrderEntryGroupingService​(OrderEntryGroupingService orderEntryGroupingService)
      • getOrderEntryMatchers

        protected java.util.Collection<OrderEntryMatcher> getOrderEntryMatchers()
      • setOrderEntryMatchers

        public void setOrderEntryMatchers​(java.util.Collection<OrderEntryMatcher> orderEntryMatchers)
      • setSourcingStrategyService

        public void setSourcingStrategyService​(SourcingStrategyService sourcingStrategyService)
      • getSourcingStrategyMappers

        protected java.util.Collection<SourcingStrategyMapper> getSourcingStrategyMappers()
      • setSourcingStrategyMappers

        public void setSourcingStrategyMappers​(java.util.Collection<SourcingStrategyMapper> sourcingStrategyMappers)
      • setSourcingResultFactory

        public void setSourcingResultFactory​(SourcingResultFactory sourcingResultFactory)