Class DefaultIndexConfigPopulator
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.converters.populator.DefaultIndexConfigPopulator
-
- All Implemented Interfaces:
Populator<SolrFacetSearchConfigModel,IndexConfig>
public class DefaultIndexConfigPopulator extends java.lang.Object implements Populator<SolrFacetSearchConfigModel,IndexConfig>
PopulatesIndexConfiginstance based on the source element -SolrFacetSearchConfigModel.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexConfigPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckSingleQuery(SolrIndexerQueryModel query)protected java.util.Collection<IndexedType>getIndexTypesFromItems(java.util.Collection<SolrIndexedTypeModel> itemTypes, SolrConfig solrConfig)protected SolrConfiggetSolrConfigFromItems(SolrServerConfigModel itemConfig)voidpopulate(SolrFacetSearchConfigModel source, IndexConfig target)Populate the target instance with values from the source instance.voidsetIndexedTypeConverter(Converter<SolrIndexedTypeModel,IndexedType> indexedTypeConverter)voidsetSolrServerConfigConverter(Converter<SolrServerConfigModel,SolrConfig> solrServerConfigConverter)
-
-
-
Method Detail
-
populate
public void populate(SolrFacetSearchConfigModel source, IndexConfig target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SolrFacetSearchConfigModel,IndexConfig>- Parameters:
source- the source objecttarget- the target to fill
-
getIndexTypesFromItems
protected java.util.Collection<IndexedType> getIndexTypesFromItems(java.util.Collection<SolrIndexedTypeModel> itemTypes, SolrConfig solrConfig) throws FacetConfigServiceException
- Throws:
FacetConfigServiceException
-
checkSingleQuery
protected void checkSingleQuery(SolrIndexerQueryModel query) throws FacetConfigServiceException
- Throws:
FacetConfigServiceException
-
getSolrConfigFromItems
protected SolrConfig getSolrConfigFromItems(SolrServerConfigModel itemConfig)
-
setSolrServerConfigConverter
public void setSolrServerConfigConverter(Converter<SolrServerConfigModel,SolrConfig> solrServerConfigConverter)
-
setIndexedTypeConverter
public void setIndexedTypeConverter(Converter<SolrIndexedTypeModel,IndexedType> indexedTypeConverter)
-
-