Class DefaultProductModelUniqueIdentifierConverter
java.lang.Object
de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultProductModelUniqueIdentifierConverter
- All Implemented Interfaces:
UniqueIdentifierConverter<ProductModel>
public class DefaultProductModelUniqueIdentifierConverter
extends Object
implements UniqueIdentifierConverter<ProductModel>
Default implementation for conversion of
ProductModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ProductModel productModel) Convert an ItemModel object to the correspondingItemDatainstance.protected Supplier<ProductModel>findProduct(EncodedItemComposedKey itemComposedKey) protected CatalogVersionServiceReturns the item typeItemModel#getItemTypewhere the converter should be applied to.protected Converter<ProductModel,ItemData> protected ProductServiceprotected SessionSearchRestrictionsDisablervoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetProductModelItemDataConverter(Converter<ProductModel, ItemData> productModelItemDataConverter) voidsetProductService(ProductService productService) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
Constructor Details
-
DefaultProductModelUniqueIdentifierConverter
public DefaultProductModelUniqueIdentifierConverter()
-
-
Method Details
-
getItemType
Description copied from interface:UniqueIdentifierConverterReturns the item typeItemModel#getItemTypewhere the converter should be applied to.- Specified by:
getItemTypein interfaceUniqueIdentifierConverter<ProductModel>- Returns:
- item type
-
convert
Description copied from interface:UniqueIdentifierConverterConvert an ItemModel object to the correspondingItemDatainstance.- Specified by:
convertin interfaceUniqueIdentifierConverter<ProductModel>- Parameters:
productModel- - the item model entity that will be converted.- Returns:
- an instance of the
ItemDataclass that corresponds to the givenItemModelUniqueIdentifierConverter.getItemType().
-
convert
Description copied from interface:UniqueIdentifierConverter- Specified by:
convertin interfaceUniqueIdentifierConverter<ProductModel>- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDataUniqueIdentifierConverter.getItemType().
-
findProduct
-
getCatalogVersionService
-
setCatalogVersionService
-
getProductService
-
setProductService
-
getProductModelItemDataConverter
-
setProductModelItemDataConverter
public void setProductModelItemDataConverter(Converter<ProductModel, ItemData> productModelItemDataConverter) -
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-