Class DefaultAsSearchProfileRegistry
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsSearchProfileRegistry
-
- All Implemented Interfaces:
AsSearchProfileRegistry,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultAsSearchProfileRegistry extends java.lang.Object implements AsSearchProfileRegistry, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation ofAsSearchProfileRegistry.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsSearchProfileRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected intcompareSearchProfileActivationMappings(DefaultAsSearchProfileActivationMapping mapping1, DefaultAsSearchProfileActivationMapping mapping2)org.springframework.context.ApplicationContextgetApplicationContext()java.util.List<AsSearchProfileActivationMapping>getSearchProfileActivationMappings()Returns all the search profile activation mappings.AsSearchProfileMappinggetSearchProfileMapping(AbstractAsSearchProfileModel searchProfile)Returns the search profile mapping for a specific search profile.java.util.Map<java.lang.String,AsSearchProfileMapping>getSearchProfileMappings()Returns all the search profile mappings.protected voidinitializeSearchProfileActivationMappings()protected voidinitializeSearchProfileMappings()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
initializeSearchProfileMappings
protected void initializeSearchProfileMappings()
-
initializeSearchProfileActivationMappings
protected void initializeSearchProfileActivationMappings()
-
compareSearchProfileActivationMappings
protected int compareSearchProfileActivationMappings(DefaultAsSearchProfileActivationMapping mapping1, DefaultAsSearchProfileActivationMapping mapping2)
-
getSearchProfileMapping
public AsSearchProfileMapping getSearchProfileMapping(AbstractAsSearchProfileModel searchProfile)
Description copied from interface:AsSearchProfileRegistryReturns the search profile mapping for a specific search profile.- Specified by:
getSearchProfileMappingin interfaceAsSearchProfileRegistry- Parameters:
searchProfile- - the search profile- Returns:
- the search profile mapping
-
getSearchProfileMappings
public java.util.Map<java.lang.String,AsSearchProfileMapping> getSearchProfileMappings()
Description copied from interface:AsSearchProfileRegistryReturns all the search profile mappings.- Specified by:
getSearchProfileMappingsin interfaceAsSearchProfileRegistry- Returns:
- the search profile mappings
-
getSearchProfileActivationMappings
public java.util.List<AsSearchProfileActivationMapping> getSearchProfileActivationMappings()
Description copied from interface:AsSearchProfileRegistryReturns all the search profile activation mappings.- Specified by:
getSearchProfileActivationMappingsin interfaceAsSearchProfileRegistry- Returns:
- the search profile activation mappings
-
-