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:UniqueIdentifierConverter
Returns the item typeItemModel#getItemType
where the converter should be applied to.- Specified by:
getItemType
in interfaceUniqueIdentifierConverter<CategoryModel>
- Returns:
- item type
-
convert
public ItemData convert(CategoryModel categoryModel)
Description copied from interface:UniqueIdentifierConverter
Convert an ItemModel object to the correspondingItemData
instance.- Specified by:
convert
in interfaceUniqueIdentifierConverter<CategoryModel>
- Parameters:
categoryModel
- - the item model entity that will be converted.- Returns:
- an instance of the
ItemData
class that corresponds to the givenItemModel
UniqueIdentifierConverter.getItemType()
.
-
convert
public CategoryModel convert(ItemData itemData)
Description copied from interface:UniqueIdentifierConverter
- Specified by:
convert
in interfaceUniqueIdentifierConverter<CategoryModel>
- Parameters:
itemData
- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModel
entity that corresponds to the givenItemData
UniqueIdentifierConverter.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)
-
-