Class ProductClassificationAttributeSnIndexerValueProvider
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider<T,D>
de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider<ProductModel,ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData>
de.hybris.platform.commerceservices.search.searchservices.provider.impl.ProductClassificationAttributeSnIndexerValueProvider
- All Implemented Interfaces:
SnIndexerValueProvider<ProductModel>
public class ProductClassificationAttributeSnIndexerValueProvider
extends AbstractProductSnIndexerValueProvider<ProductModel,ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData>
Implementation of
SnIndexerValueProvider for product attributes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final PatternFields inherited from class de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider
PRODUCT_SELECTOR_PARAM, PRODUCT_SELECTOR_PARAM_DEFAULT_VALUE, PRODUCT_SELECTOR_VALUE_BASE, PRODUCT_SELECTOR_VALUE_CURRENT, PRODUCT_SELECTOR_VALUE_CURRENT_PARENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFeatureValues(List<Object> values, List<FeatureValue> featureValues) protected voidaddLocalizedFeatureValues(Map<Locale, List<Object>> localizedValues, Feature feature, List<Locale> locales) protected ObjectcleanLocalizedValues(SnIndexerFieldWrapper fieldWrapper, Map<Locale, List<Object>> localizedValues) protected ObjectcleanValues(SnIndexerFieldWrapper fieldWrapper, List<Object> values) protected Map<String,ClassAttributeAssignmentModel> collectClassAttributeAssignments(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers) protected Map<PK,FeatureList> collectFeatures(Collection<ProductModel> products, Collection<ClassAttributeAssignmentModel> classAttributeAssignments) protected ObjectcollectLocalizedValues(SnIndexerFieldWrapper fieldWrapper, Collection<ProductModel> products, ClassAttributeAssignmentModel classAttributeAssignment, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data, List<Locale> locales) protected ObjectcollectValues(SnIndexerFieldWrapper fieldWrapper, Collection<ProductModel> products, ClassAttributeAssignmentModel classAttributeAssignment, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data) protected Map<String,ClassAttributeAssignmentModel> doCollectClassAttributeAssignments(Collection<SnIndexerFieldWrapper> fieldWrappers) protected ObjectgetFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data) Returns the value for a given field and source model.Returns the supported qualifier classes.loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) Loads data for the given indexer context.protected StringresolveClassificationAttribute(SnIndexerFieldWrapper fieldWrapper) voidsetClassificationService(ClassificationService classificationService) voidsetClassificationSystemService(ClassificationSystemService classificationSystemService) voidsetSnClassAttributeAssignmentModelDao(SnClassAttributeAssignmentModelDao snClassAttributeAssignmentModelDao) voidsetSnSessionService(SnSessionService snSessionService) Methods inherited from class de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider
collectBaseProduct, collectCurrentParentProducts, collectCurrentProduct, collectProducts, mergeProducts, resolveProductSelectorMethods inherited from class de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider
getValueProcessors, processValue, provide, setValueProcessors
-
Field Details
-
ID
- See Also:
-
SUPPORTED_QUALIFIER_CLASSES
-
CLASSIFICATION_ATTRIBUTE_PARAM
- See Also:
-
CLASSIFICATION_ATTRIBUTE_PARAM_DEFAULT_VALUE
-
PATTERN
-
CLASSIFICATION_ATTRIBUTE_ASSIGNMENTS_KEY
-
-
Constructor Details
-
ProductClassificationAttributeSnIndexerValueProvider
public ProductClassificationAttributeSnIndexerValueProvider()
-
-
Method Details
-
getSupportedQualifierClasses
Description copied from interface:SnIndexerValueProviderReturns the supported qualifier classes.- Returns:
- the supported qualifier classes
- Throws:
SnIndexerException
-
getFieldValue
protected Object getFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data) throws SnIndexerException Description copied from class:AbstractSnIndexerValueProviderReturns the value for a given field and source model.- Specified by:
getFieldValuein classAbstractSnIndexerValueProvider<ProductModel,ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData> - Parameters:
indexerContext- - the current indexer contextfieldWrapper- - the field wrappersource- - the source modeldata- - the data- Throws:
SnIndexerException- if an error occurs
-
collectLocalizedValues
protected Object collectLocalizedValues(SnIndexerFieldWrapper fieldWrapper, Collection<ProductModel> products, ClassAttributeAssignmentModel classAttributeAssignment, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data, List<Locale> locales) -
addLocalizedFeatureValues
-
cleanLocalizedValues
-
collectValues
protected Object collectValues(SnIndexerFieldWrapper fieldWrapper, Collection<ProductModel> products, ClassAttributeAssignmentModel classAttributeAssignment, ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData data) -
addFeatureValues
-
cleanValues
-
loadData
protected ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) throws SnIndexerException Description copied from class:AbstractSnIndexerValueProviderLoads data for the given indexer context.- Overrides:
loadDatain classAbstractSnIndexerValueProvider<ProductModel,ProductClassificationAttributeSnIndexerValueProvider.ProductClassificationData> - Parameters:
indexerContext- - the current indexer contextfieldWrappers- - the field wrapperssource- - the source model- Throws:
SnIndexerException- if an error occurs
-
collectClassAttributeAssignments
protected Map<String,ClassAttributeAssignmentModel> collectClassAttributeAssignments(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers) throws SnIndexerException - Throws:
SnIndexerException
-
doCollectClassAttributeAssignments
protected Map<String,ClassAttributeAssignmentModel> doCollectClassAttributeAssignments(Collection<SnIndexerFieldWrapper> fieldWrappers) throws SnIndexerException - Throws:
SnIndexerException
-
collectFeatures
protected Map<PK,FeatureList> collectFeatures(Collection<ProductModel> products, Collection<ClassAttributeAssignmentModel> classAttributeAssignments) -
resolveClassificationAttribute
-
getClassificationSystemService
-
setClassificationSystemService
-
getClassificationService
-
setClassificationService
-
getSnSessionService
-
setSnSessionService
-
getSnClassAttributeAssignmentModelDao
-
setSnClassAttributeAssignmentModelDao
public void setSnClassAttributeAssignmentModelDao(SnClassAttributeAssignmentModelDao snClassAttributeAssignmentModelDao)
-