Class AbstractBaseSourcingLocationFilter

    • Constructor Detail

      • AbstractBaseSourcingLocationFilter

        public AbstractBaseSourcingLocationFilter()
    • Method Detail

      • applyFilter

        public abstract java.util.Collection<WarehouseModel> applyFilter​(AbstractOrderModel order,
                                                                         java.util.Set<WarehouseModel> locations)
        Method used to apply the filter on the order and return a set of sourcing locations.
        Parameters:
        order - - Order to be sourced (input value); cannot be null
        locations - - Set of sourcing locations (output value); cannot be null
      • filterLocations

        public void filterLocations​(AbstractOrderModel order,
                                    java.util.Set<WarehouseModel> locations)
        Description copied from interface: SourcingLocationFilter
        Apply the filter on the order and returns a set of locations to be used for sourcing.
        Specified by:
        filterLocations in interface SourcingLocationFilter
        Parameters:
        order - - Order to be sourced (input value); cannot be null
        locations - - Set of sourcing locations (output value); cannot be null
      • combineFilteredLocations

        protected void combineFilteredLocations​(java.util.Collection<WarehouseModel> filteredResults,
                                                java.util.Set<WarehouseModel> locations)
        Combine a collection of filtered results and the sourcing locations according to the SourcingFilterResultOperator value defined.
        The AND operator returns a set of locations containing only items present in both input parameters (disjunction set).
        The OR and NONE operator returns a set of locations containing all items present in both input parameters (conjunction set). The NOT operator returns a set of locations excluding locations in Filtered results
        Parameters:
        filteredResults - - Filtered results to be combined to the locations parameter (input value); cannot be null
        locations - - Current set of sourcing locations (output value); cannot be null