Class ItemIdentityProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.ItemIdentityProvider
-
- All Implemented Interfaces:
IdentityProvider<ItemModel>
public class ItemIdentityProvider extends java.lang.Object implements IdentityProvider<ItemModel>
Resolves unique Item's identity. Respects multi-catalog versions and items with no catalogs
-
-
Constructor Summary
Constructors Constructor Description ItemIdentityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogTypeService
getCatalogTypeService()
java.lang.String
getIdentifier(IndexConfig indexConfig, ItemModel item)
Provides unique string representation of indexed type identifier that is generated with respect to the model type restrictions.ModelService
getModelService()
protected java.lang.String
prepareCatalogAwareItemIdentifier(ItemModel item)
void
setCatalogTypeService(CatalogTypeService catalogTypeService)
void
setModelService(ModelService modelService)
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier(IndexConfig indexConfig, ItemModel item)
Description copied from interface:IdentityProvider
Provides unique string representation of indexed type identifier that is generated with respect to the model type restrictions.- Specified by:
getIdentifier
in interfaceIdentityProvider<ItemModel>
- Returns:
- identifier
-
prepareCatalogAwareItemIdentifier
protected java.lang.String prepareCatalogAwareItemIdentifier(ItemModel item)
-
getCatalogTypeService
public CatalogTypeService getCatalogTypeService()
- Returns:
- the catalogTypeService
-
setCatalogTypeService
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
- Parameters:
catalogTypeService
- the catalogTypeService to set
-
getModelService
public ModelService getModelService()
- Returns:
- the modelService
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService
- the modelService to set
-
-