Class DefaultCategoryModelUniqueIdentifierConverter
java.lang.Object
de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCategoryModelUniqueIdentifierConverter
- All Implemented Interfaces:
UniqueIdentifierConverter<CategoryModel>
public class DefaultCategoryModelUniqueIdentifierConverter
extends Object
implements UniqueIdentifierConverter<CategoryModel>
Default implementation for conversion of
CategoryModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(CategoryModel categoryModel) Convert an ItemModel object to the correspondingItemDatainstance.protected Supplier<CategoryModel>findCategory(EncodedItemComposedKey itemComposedKey) protected CatalogVersionServiceprotected Converter<CategoryModel,ItemData> protected CategoryServiceReturns the item typeItemModel#getItemTypewhere the converter should be applied to.protected SessionSearchRestrictionsDisablervoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCategoryModelItemDataConverter(Converter<CategoryModel, ItemData> categoryModelItemDataConverter) voidsetCategoryService(CategoryService categoryService) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
Constructor Details
-
DefaultCategoryModelUniqueIdentifierConverter
public DefaultCategoryModelUniqueIdentifierConverter()
-
-
Method Details
-
getItemType
Description copied from interface:UniqueIdentifierConverterReturns the item typeItemModel#getItemTypewhere the converter should be applied to.- Specified by:
getItemTypein interfaceUniqueIdentifierConverter<CategoryModel>- Returns:
- item type
-
convert
Description copied from interface:UniqueIdentifierConverterConvert an ItemModel object to the correspondingItemDatainstance.- Specified by:
convertin interfaceUniqueIdentifierConverter<CategoryModel>- Parameters:
categoryModel- - 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<CategoryModel>- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDataUniqueIdentifierConverter.getItemType().
-
findCategory
-
getCatalogVersionService
-
setCatalogVersionService
-
getCategoryService
-
setCategoryService
-
getCategoryModelItemDataConverter
-
setCategoryModelItemDataConverter
public void setCategoryModelItemDataConverter(Converter<CategoryModel, ItemData> categoryModelItemDataConverter) -
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-