Class DefaultAsSearchProfileActivationService
java.lang.Object
de.hybris.platform.adaptivesearch.services.impl.DefaultAsSearchProfileActivationService
- All Implemented Interfaces:
AsSearchProfileActivationService
public class DefaultAsSearchProfileActivationService
extends Object
implements AsSearchProfileActivationService
Default implementation of
AsSearchProfileActivationService.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanActivateSearchProfile(AsSearchProfileContext context, AbstractAsSearchProfileModel searchProfile) voidClears the current active search profiles in the session.Returns the current active search profiles in the session.Returns the active search profile groups for a given context.protected AsSearchProfileActivationGroupprocessSearchProfileActivationGroup(AsSearchProfileContext context, AsSearchProfileActivationGroup source) voidsetAsSearchProfileRegistry(AsSearchProfileRegistry asSearchProfileRegistry) voidsetCurrentSearchProfiles(List<AbstractAsSearchProfileModel> searchProfiles) Sets the current active search profiles in the session.voidsetModelService(ModelService modelService) voidsetSessionService(SessionService sessionService)
-
Field Details
-
CURRENT_SEARCH_PROFILES
- See Also:
-
-
Constructor Details
-
DefaultAsSearchProfileActivationService
public DefaultAsSearchProfileActivationService()
-
-
Method Details
-
setCurrentSearchProfiles
Description copied from interface:AsSearchProfileActivationServiceSets the current active search profiles in the session.- Specified by:
setCurrentSearchProfilesin interfaceAsSearchProfileActivationService- Parameters:
searchProfiles- - the active search profiles
-
getCurrentSearchProfiles
Description copied from interface:AsSearchProfileActivationServiceReturns the current active search profiles in the session. If there are no current active search profiles, an emptyOptionalis returned.- Specified by:
getCurrentSearchProfilesin interfaceAsSearchProfileActivationService- Returns:
- the current search profiles
-
clearCurrentSearchProfiles
public void clearCurrentSearchProfiles()Description copied from interface:AsSearchProfileActivationServiceClears the current active search profiles in the session.- Specified by:
clearCurrentSearchProfilesin interfaceAsSearchProfileActivationService
-
getSearchProfileActivationGroupsForContext
public List<AsSearchProfileActivationGroup> getSearchProfileActivationGroupsForContext(AsSearchProfileContext context) Description copied from interface:AsSearchProfileActivationServiceReturns the active search profile groups for a given context.- Specified by:
getSearchProfileActivationGroupsForContextin interfaceAsSearchProfileActivationService- Parameters:
context- - the search profile context- Returns:
- the active search profile group
-
processSearchProfileActivationGroup
protected AsSearchProfileActivationGroup processSearchProfileActivationGroup(AsSearchProfileContext context, AsSearchProfileActivationGroup source) -
canActivateSearchProfile
protected boolean canActivateSearchProfile(AsSearchProfileContext context, AbstractAsSearchProfileModel searchProfile) -
getModelService
-
setModelService
-
getSessionService
-
setSessionService
-
getAsSearchProfileRegistry
-
setAsSearchProfileRegistry
-