Class DefaultItemTypePopulatorProvider
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.impl.DefaultItemTypePopulatorProvider
-
- All Implemented Interfaces:
ItemTypePopulatorProvider
public class DefaultItemTypePopulatorProvider extends java.lang.Object implements ItemTypePopulatorProvider
Default implementation forItemTypePopulatorProvider. This class defines a Map that is used to lookup for a Populator given a typeCode. If no populator was found for the type code, then it looks for the populator for its super class.
-
-
Constructor Summary
Constructors Constructor Description DefaultItemTypePopulatorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>>getItemTypePopulator(java.lang.String typeCode)Interface method to optionally return aPopulatorgiven the typeCode.protected java.util.Map<java.lang.String,Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>>getPopulatorsMap()protected TypeServicegetTypeService()voidsetPopulatorsMap(java.util.Map<java.lang.String,Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>> populatorsMap)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
getItemTypePopulator
public java.util.Optional<Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>> getItemTypePopulator(java.lang.String typeCode)
Description copied from interface:ItemTypePopulatorProviderInterface method to optionally return aPopulatorgiven the typeCode.- Specified by:
getItemTypePopulatorin interfaceItemTypePopulatorProvider- Parameters:
typeCode- the ItemModel type code- Returns:
- the Populator registered for the typeCode.
-
getPopulatorsMap
protected java.util.Map<java.lang.String,Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>> getPopulatorsMap()
-
setPopulatorsMap
public void setPopulatorsMap(java.util.Map<java.lang.String,Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>> populatorsMap)
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-