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 CatalogTypeServicegetCatalogTypeService()java.lang.StringgetIdentifier(IndexConfig indexConfig, ItemModel item)Provides unique string representation of indexed type identifier that is generated with respect to the model type restrictions.ModelServicegetModelService()protected java.lang.StringprepareCatalogAwareItemIdentifier(ItemModel item)voidsetCatalogTypeService(CatalogTypeService catalogTypeService)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier(IndexConfig indexConfig, ItemModel item)
Description copied from interface:IdentityProviderProvides unique string representation of indexed type identifier that is generated with respect to the model type restrictions.- Specified by:
getIdentifierin 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
-
-