Class UpdateFacetsStrategy
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.search.strategies.impl.UpdateFacetsStrategy
- All Implemented Interfaces:
UpdateSearchCriterionStrategy
This strategy will update the
CriterionData with the facets during an accommodation search.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(CriterionData criterion, AccommodationOfferingSearchPageData searchPageData) Apply strategy.protected voidpopulateFacets(List<FacetData<SearchStateData>> totalFacets, List<FacetData<SearchStateData>> accommodationFacets) Populates totalFacets with accommodationFacets.protected voidpopulateFacetValues(List<FacetValueData<SearchStateData>> totalFacetValues, List<FacetValueData<SearchStateData>> accommodationFacetValues) Populates totalFacetValues with missing accommodationFacetValues.
-
Constructor Details
-
UpdateFacetsStrategy
public UpdateFacetsStrategy()
-
-
Method Details
-
applyStrategy
public void applyStrategy(CriterionData criterion, AccommodationOfferingSearchPageData searchPageData) Description copied from interface:UpdateSearchCriterionStrategyApply strategy.- Specified by:
applyStrategyin interfaceUpdateSearchCriterionStrategy- Parameters:
criterion- the criterionsearchPageData- the search page data
-
populateFacets
protected void populateFacets(List<FacetData<SearchStateData>> totalFacets, List<FacetData<SearchStateData>> accommodationFacets) Populates totalFacets with accommodationFacets. If facet already exist, it updates the facet values with the missing ones, otherwise it will add the facet.- Parameters:
totalFacets- the accommodationOfferingFacade to setaccommodationFacets- the accommodationOfferingFacade to set
-
populateFacetValues
protected void populateFacetValues(List<FacetValueData<SearchStateData>> totalFacetValues, List<FacetValueData<SearchStateData>> accommodationFacetValues) Populates totalFacetValues with missing accommodationFacetValues.- Parameters:
totalFacetValues- the totalFacetValues to setaccommodationFacetValues- the accommodationFacetValues to set
-