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