Interface SourcingLocationFilter
-
- All Known Implementing Classes:
AbstractBaseSourcingLocationFilter,AvailabilitySourcingLocationFilter,DeliveryCountrySourcingLocationFilter,PickupSourcingLocationFilter,RestockLocationFilter
public interface SourcingLocationFilterSourcing filter interface used to obtain a minimal working subset of locations to be used for sourcing of an order.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfilterLocations(AbstractOrderModel order, java.util.Set<WarehouseModel> locations)Apply the filter on the order and returns a set of locations to be used for sourcing.voidsetFilterResultOperator(SourcingFilterResultOperator operator)Utility method used to decide whether the filtered result set should be a union (OR) or an intersection (AND).
-
-
-
Method Detail
-
filterLocations
void filterLocations(AbstractOrderModel order, java.util.Set<WarehouseModel> locations)
Apply the filter on the order and returns a set of locations to be used for sourcing.- Parameters:
order- - Order to be sourced (input value); cannot be nulllocations- - Set of sourcing locations (output value); cannot be null
-
setFilterResultOperator
void setFilterResultOperator(SourcingFilterResultOperator operator)
Utility method used to decide whether the filtered result set should be a union (OR) or an intersection (AND).- Parameters:
operator- - AND or OR operator to apply on the result sets; cannot be null
-
-