Class CustomFieldSolrIndexServiceExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler
com.broadleafcommerce.customfield.service.search.index.CustomFieldSolrIndexServiceExtensionHandler
- All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler,org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandler
@Service("blCustomFieldSolrIndexServiceExtensionHandler")
public class CustomFieldSolrIndexServiceExtensionHandler
extends org.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler
implements org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandler
- Author:
- Nick Crum (ncrum)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionManagerprotected org.broadleafcommerce.common.dao.GenericEntityDaostatic final Stringprotected org.broadleafcommerce.core.search.service.solr.SolrHelperServiceFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.extension.ExtensionResultStatusTypeaddPropertyValues(org.broadleafcommerce.core.catalog.domain.Indexable indexable, org.broadleafcommerce.core.search.domain.Field field, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType, Map<String, Object> values, String propertyName, List<org.broadleafcommerce.common.locale.domain.Locale> locales) convertValueAssignable(Collection values, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType) protected StringformatDate(Serializable dateValue) voidinit()protected StringresolveCustomFieldPropertyName(String fieldName, String propertyName) Methods inherited from class org.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler
attachAdditionalBasicFields, attachAdditionalDocumentFields, attachChildDocuments, endBatchEvent, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexField, startBatchEventMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabledMethods inherited from interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandler
attachAdditionalBasicFields, attachAdditionalDocumentFields, attachChildDocuments, endBatchEvent, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexField, startBatchEvent
-
Field Details
-
shs
protected org.broadleafcommerce.core.search.service.solr.SolrHelperService shs -
extensionManager
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionManager extensionManager -
genericEntityDao
protected org.broadleafcommerce.common.dao.GenericEntityDao genericEntityDao -
DEFAULT_DATE_FORMAT
- See Also:
-
ISO_DATE_FORMAT
- See Also:
-
-
Constructor Details
-
CustomFieldSolrIndexServiceExtensionHandler
public CustomFieldSolrIndexServiceExtensionHandler()
-
-
Method Details
-
init
@PostConstruct public void init() -
addPropertyValues
public org.broadleafcommerce.common.extension.ExtensionResultStatusType addPropertyValues(org.broadleafcommerce.core.catalog.domain.Indexable indexable, org.broadleafcommerce.core.search.domain.Field field, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType, Map<String, Object> values, String propertyName, List<org.broadleafcommerce.common.locale.domain.Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException- Specified by:
addPropertyValuesin interfaceorg.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandler- Overrides:
addPropertyValuesin classorg.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler- Throws:
IllegalAccessExceptionInvocationTargetExceptionNoSuchMethodException
-
convertValueAssignable
protected Map<String,Object> convertValueAssignable(Collection values, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType) -
resolveCustomFieldPropertyName
-
formatDate
-