Class ModifyInventoryFinderHandler
java.lang.Object
de.hybris.platform.transportbackoffice.widgets.inventory.handler.ModifyInventoryFinderHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
public class ModifyInventoryFinderHandler
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Class is responsible to search for the instance of
StockLevelModel for "modify-inventory" wizard.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommonStocks(Map<String, Long> groupedStockLevels, int size) Method returns the common stock level code from the given map of stocks by checking the transport offering size with the value of each map entry.protected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected TravelStockServiceGets travel stock service.voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetTravelStockService(TravelStockService travelStockService) Sets travel stock service.protected voidshowErrorPopup(String label) Method responsible to show error/warning popup on step-1 of "modify-inventory" wizard.
-
Constructor Details
-
ModifyInventoryFinderHandler
public ModifyInventoryFinderHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
getCommonStocks
Method returns the common stock level code from the given map of stocks by checking the transport offering size with the value of each map entry.- Parameters:
groupedStockLevels- the grouped stock levelssize- the size- Returns:
- the common stocks
-
showErrorPopup
Method responsible to show error/warning popup on step-1 of "modify-inventory" wizard.- Parameters:
label- the label
-
getTravelStockService
Gets travel stock service.- Returns:
- travelStockService travel stock service
-
setTravelStockService
Sets travel stock service.- Parameters:
travelStockService- the travelStockService to set
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Gets model service.- Returns:
- modelService model service
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.- Parameters:
modelService- the model service
-