Interface BackofficeFacetSearchConfigService
-
- All Known Implementing Classes:
DefaultBackofficeFacetSearchConfigService
public interface BackofficeFacetSearchConfigServiceConfiguration service for backoffice solr search.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<FacetSearchConfig>getAllMappedFacetSearchConfigs()Finds all configs configured to be used in backoffice.FacetSearchConfiggetFacetSearchConfig(java.lang.String typeCode)Finds matching config for given type or one of its superTypes.IndexedTypegetIndexedType(FacetSearchConfig config, java.lang.String typeCode)Gets converted index config from given config for given type code or one of its superTypesSolrFacetSearchConfigModelgetSolrFacetSearchConfigModel(java.lang.String typeCode)Finds matching config for given type or one of its superTypes.SolrIndexedTypeModelgetSolrIndexedType(java.lang.String typeCode)Finds indexed type for given type code or one of its superTypes.booleanisBackofficeSolrSearchConfiguredForName(java.lang.String facetSearchConfigName)Tells whether there is existing backoffice solr config for given name.booleanisSolrSearchConfiguredForType(java.lang.String typeCode)Tells whether there is existing solr config for given type or one of it's superTypes.
-
-
-
Method Detail
-
getFacetSearchConfig
FacetSearchConfig getFacetSearchConfig(java.lang.String typeCode) throws FacetConfigServiceException
Finds matching config for given type or one of its superTypes.- Parameters:
typeCode- type code.- Returns:
- config for given type code.
- Throws:
FacetConfigServiceException- when configuration cannot be load
-
getAllMappedFacetSearchConfigs
java.util.Collection<FacetSearchConfig> getAllMappedFacetSearchConfigs()
Finds all configs configured to be used in backoffice.- Returns:
- collection of configs or an empty collection if there is none
-
getSolrFacetSearchConfigModel
SolrFacetSearchConfigModel getSolrFacetSearchConfigModel(java.lang.String typeCode) throws FacetConfigServiceException
Finds matching config for given type or one of its superTypes.- Parameters:
typeCode- type code.- Returns:
- config for given type code.
- Throws:
FacetConfigServiceException- when configuration cannot be load
-
getSolrIndexedType
SolrIndexedTypeModel getSolrIndexedType(java.lang.String typeCode)
Finds indexed type for given type code or one of its superTypes.- Parameters:
typeCode- type code.- Returns:
- index config for given type code.
-
getIndexedType
IndexedType getIndexedType(FacetSearchConfig config, java.lang.String typeCode)
Gets converted index config from given config for given type code or one of its superTypes- Parameters:
config- config which includes indexed types.typeCode- type code.- Returns:
- converted index for given type code
-
isSolrSearchConfiguredForType
boolean isSolrSearchConfiguredForType(java.lang.String typeCode)
Tells whether there is existing solr config for given type or one of it's superTypes.- Parameters:
typeCode- type code.- Returns:
- true if there is solr config for given type code.
-
isBackofficeSolrSearchConfiguredForName
boolean isBackofficeSolrSearchConfiguredForName(java.lang.String facetSearchConfigName)
Tells whether there is existing backoffice solr config for given name.- Parameters:
facetSearchConfigName- name of the solr configuration- Returns:
- true if there is solr config for given name.
-
-