Class TransportOfferingLocationHierarchyValueProvider

java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.travelservices.solr.provider.impl.TransportOfferingLocationHierarchyValueProvider
All Implemented Interfaces:
de.hybris.platform.solrfacetsearch.provider.FieldValueProvider

public class TransportOfferingLocationHierarchyValueProvider extends de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider implements de.hybris.platform.solrfacetsearch.provider.FieldValueProvider
Location hierarchy value provider for the transport offering origin/destination.
  • Constructor Details

    • TransportOfferingLocationHierarchyValueProvider

      public TransportOfferingLocationHierarchyValueProvider()
  • Method Details

    • getFieldValues

      public Collection<de.hybris.platform.solrfacetsearch.provider.FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
      Specified by:
      getFieldValues in interface de.hybris.platform.solrfacetsearch.provider.FieldValueProvider
      Throws:
      de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
    • getLocationHierarchy

      protected String getLocationHierarchy(TransportFacilityModel transportFacilityModel)
      Gets location hierarchy.
      Parameters:
      transportFacilityModel - the transport facility model
      Returns:
      the location hierarchy
    • getTransportFacility

      protected TransportFacilityModel getTransportFacility(TransportOfferingModel transportOffering)
      Gets transport facility.
      Parameters:
      transportOffering - the transport offering
      Returns:
      the transport facility
    • getCityCode

      protected String getCityCode(TransportFacilityModel origin)
      Gets city code.
      Parameters:
      origin - the origin
      Returns:
      the city code
    • getCountryCode

      protected String getCountryCode(TransportFacilityModel origin)
      Gets country code.
      Parameters:
      origin - the origin
      Returns:
      the country code
    • getFieldNameProvider

      protected de.hybris.platform.solrfacetsearch.provider.FieldNameProvider getFieldNameProvider()
      Gets field name provider.
      Returns:
      field name provider
    • setFieldNameProvider

      public void setFieldNameProvider(de.hybris.platform.solrfacetsearch.provider.FieldNameProvider fieldNameProvider)
      Sets field name provider.
      Parameters:
      fieldNameProvider - the field name provider
    • getLocationOption

      protected String getLocationOption()
      Gets location option.
      Returns:
      location option
    • setLocationOption

      public void setLocationOption(String locationOption)
      Sets location option.
      Parameters:
      locationOption - the location option