Class IngredientFilter
java.lang.Object
com.tccc.kos.ext.dispense.service.insertion.InsertionFilter<InsertionFilterConfig>
com.tccc.kos.ext.dispense.service.ingredient.IngredientFilter
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<InsertionFilterConfig>,com.tccc.kos.commons.core.service.handle.HandleAware
Insertion filter that blocks insertions of unknown ingredients. Since insertion
is global but ingredients can be as granular as per-holder, this filter needs
to check the holders in the request and check each ingredient accordingly.
- Since:
- 1.0
- Version:
- 2023-02-06
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRequest(InsertRequest request) Called to verify if anInsertRequestcan be inserted.Methods inherited from class com.tccc.kos.ext.dispense.service.insertion.InsertionFilter
checkPumpRequest, getConfig, getGroup, getHandle, getPosition, setConfig, setHandleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSetMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
IngredientFilter
public IngredientFilter()Create a new filter.
-
-
Method Details
-
checkRequest
Description copied from class:InsertionFilterCalled to verify if anInsertRequestcan be inserted. Userequest.block()to prevent the request from proceeding. To attach a trouble to the request but still allow the request to move forward, userequest.warn().- Specified by:
checkRequestin classInsertionFilter<InsertionFilterConfig>- Parameters:
request- the request to operate on
-