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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionManager
     
    protected org.broadleafcommerce.common.dao.GenericEntityDao
     
    static final String
     
    protected org.broadleafcommerce.core.search.service.solr.SolrHelperService
     

    Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    enabled, priority
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    protected Map<String,Object>
    convertValueAssignable(Collection values, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType)
     
    protected String
     
    void
     
    protected String
    resolveCustomFieldPropertyName(String fieldName, String propertyName)
     

    Methods inherited from class org.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler

    attachAdditionalBasicFields, attachAdditionalDocumentFields, attachChildDocuments, endBatchEvent, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexField, startBatchEvent

    Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    getPriority, isEnabled, setEnabled, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled

    Methods 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

      public static final String DEFAULT_DATE_FORMAT
      See Also:
    • ISO_DATE_FORMAT

      public static final String 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:
      addPropertyValues in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandler
      Overrides:
      addPropertyValues in class org.broadleafcommerce.core.search.service.solr.index.AbstractSolrIndexServiceExtensionHandler
      Throws:
      IllegalAccessException
      InvocationTargetException
      NoSuchMethodException
    • convertValueAssignable

      protected Map<String,Object> convertValueAssignable(Collection values, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType)
    • resolveCustomFieldPropertyName

      protected String resolveCustomFieldPropertyName(String fieldName, String propertyName)
    • formatDate

      protected String formatDate(Serializable dateValue)