Class DefaultCategoryModelUniqueIdentifierConverter
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCategoryModelUniqueIdentifierConverter
-
- All Implemented Interfaces:
UniqueIdentifierConverter<CategoryModel>
public class DefaultCategoryModelUniqueIdentifierConverter extends java.lang.Object implements UniqueIdentifierConverter<CategoryModel>
Default implementation for conversion ofCategoryModel
-
-
Constructor Summary
Constructors Constructor Description DefaultCategoryModelUniqueIdentifierConverter()
-
Method Summary
-
-
-
Method Detail
-
getItemType
public java.lang.String 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
public ItemData convert(CategoryModel categoryModel)
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
public CategoryModel convert(ItemData itemData)
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
protected java.util.function.Supplier<CategoryModel> findCategory(EncodedItemComposedKey itemComposedKey)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCategoryService
protected CategoryService getCategoryService()
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
getCategoryModelItemDataConverter
protected Converter<CategoryModel,ItemData> getCategoryModelItemDataConverter()
-
setCategoryModelItemDataConverter
public void setCategoryModelItemDataConverter(Converter<CategoryModel,ItemData> categoryModelItemDataConverter)
-
getSessionSearchRestrictionsDisabler
protected SessionSearchRestrictionsDisabler getSessionSearchRestrictionsDisabler()
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
-