Class DefaultAsSearchProfileFacade
java.lang.Object
de.hybris.platform.adaptivesearchfacades.facades.impl.DefaultAsSearchProfileFacade
- All Implemented Interfaces:
AsSearchProfileFacade
Default implementation for
AsSearchProfileFacade-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildParameters(Map<String, String> filters) protected SearchPageData<AsSearchProfileData>protected SearchPageData<AsSearchProfileData>createEmptyAsSearchPageData(SearchPageData<?> pagination) protected booleancurrentUserReadableCatalogVersionParamsFromFilterIsEmpty(Map<String, String> filters, Map<String, Object> paramsMap) protected Collection<CatalogVersionModel>protected List<CatalogVersionModel>getCurrentUserReadableCatalogVersionsFromFilter(String catalogVersions) getIndexTypesFromFilter(String indexTypes) getSearchProfiles(String query, Map<String, String> filters) Returns search profilesgetSearchProfiles(String query, Map<String, String> filters, SearchPageData<?> pagination) Returns paginated search profiles.voidsetAsSearchProfileDataConverter(Converter<AbstractAsSearchProfileModel, AsSearchProfileData> asSearchProfileDataConverter) voidsetAsSearchProfileService(AsSearchProfileService asSearchProfileService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetUserService(UserService userService)
-
Field Details
-
COMMA_SEPARATOR
- See Also:
-
CATALOG_VERSIONS_FILTER
- See Also:
-
INDEX_TYPES_FILTER
- See Also:
-
-
Constructor Details
-
DefaultAsSearchProfileFacade
public DefaultAsSearchProfileFacade()
-
-
Method Details
-
getSearchProfiles
Description copied from interface:AsSearchProfileFacadeReturns search profiles- Specified by:
getSearchProfilesin interfaceAsSearchProfileFacade- Parameters:
query- query parameter for filteringfilters- parameters for filtering- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfiles
public SearchPageData<AsSearchProfileData> getSearchProfiles(String query, Map<String, String> filters, SearchPageData<?> pagination) Description copied from interface:AsSearchProfileFacadeReturns paginated search profiles.- Specified by:
getSearchProfilesin interfaceAsSearchProfileFacade- Parameters:
query- query parameter for filteringfilters- parameters for filteringpagination- holder of pagination data and sort options- Returns:
- list of search profiles or empty list if no profile is found
-
currentUserReadableCatalogVersionParamsFromFilterIsEmpty
-
createAsSearchPageData
protected SearchPageData<AsSearchProfileData> createAsSearchPageData(SearchPageData<AbstractAsSearchProfileModel> input) -
createEmptyAsSearchPageData
protected SearchPageData<AsSearchProfileData> createEmptyAsSearchPageData(SearchPageData<?> pagination) -
buildParameters
-
getCurrentUserReadableCatalogVersions
-
getCurrentUserReadableCatalogVersionsFromFilter
protected List<CatalogVersionModel> getCurrentUserReadableCatalogVersionsFromFilter(String catalogVersions) -
getIndexTypesFromFilter
-
getAsSearchProfileService
-
setAsSearchProfileService
-
getCatalogVersionService
-
setCatalogVersionService
-
getUserService
-
setUserService
-
getAsSearchProfileDataConverter
public Converter<AbstractAsSearchProfileModel,AsSearchProfileData> getAsSearchProfileDataConverter() -
setAsSearchProfileDataConverter
public void setAsSearchProfileDataConverter(Converter<AbstractAsSearchProfileModel, AsSearchProfileData> asSearchProfileDataConverter)
-