Class SourcingFilterProcessor
java.lang.Object
de.hybris.platform.warehousing.sourcing.filter.SourcingFilterProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class SourcingFilterProcessor
extends Object
implements org.springframework.beans.factory.InitializingBean
This is a utility class that filters locations according to a collection of filters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfilterLocations(AbstractOrderModel order, Set<WarehouseModel> locations) Start the filter chain execution and returns a set of locations to be used for sourcing.protected Collection<SourcingLocationFilter>voidsetFilters(Collection<SourcingLocationFilter> filters) Set the list of filters to be processed (in FIFO order).
-
Constructor Details
-
SourcingFilterProcessor
public SourcingFilterProcessor()
-
-
Method Details
-
filterLocations
public void filterLocations(AbstractOrderModel order, Set<WarehouseModel> locations) throws IllegalArgumentException, IllegalStateException Start the filter chain execution 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- Throws:
IllegalArgumentException- when order and/or locations parameters are nullIllegalStateException- when no filter is set
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getFilters
-
setFilters
Set the list of filters to be processed (in FIFO order).- Parameters:
filters- - ordered list of filters to be processed; cannot be null or empty
-