Class DefaultAsSearchProfileService
java.lang.Object
de.hybris.platform.adaptivesearch.services.impl.DefaultAsSearchProfileService
- All Implemented Interfaces:
AsSearchProfileService
Default implementation of
AsSearchProfileService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends AbstractAsSearchProfileModel>
TcloneSearchProfile(T original) Creates a deep copy of the given search profile.<T extends AbstractAsSearchProfileModel>
List<T>Returns all search profiles.<T extends AbstractAsSearchProfileModel>
Optional<T>getSearchProfileForCode(CatalogVersionModel catalogVersion, String code) Returns the search profile a specific catalog version and code.<T extends AbstractAsSearchProfileModel>
List<T>getSearchProfiles(String query, Map<String, Object> filters) Returns search profiles.<T extends AbstractAsSearchProfileModel>
SearchPageData<T>getSearchProfiles(String query, Map<String, Object> filters, SearchPageData<?> pagination) Returns paginated search profiles.<T extends AbstractAsSearchProfileModel>
List<T>getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion) Returns all search profiles for a specific catalog version.<T extends AbstractAsSearchProfileModel>
List<T>getSearchProfilesForIndexTypesAndCatalogVersions(List<String> indexTypes, List<CatalogVersionModel> catalogVersions) Returns all search profiles for a list of index types and catalog versions.voidsetAsCloneStrategy(AsCloneStrategy asCloneStrategy) voidsetAsSearchProfileDao(AsSearchProfileDao asSearchProfileDao)
-
Constructor Details
-
DefaultAsSearchProfileService
public DefaultAsSearchProfileService()
-
-
Method Details
-
getAllSearchProfiles
Description copied from interface:AsSearchProfileServiceReturns all search profiles.- Specified by:
getAllSearchProfilesin interfaceAsSearchProfileService- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfilesForIndexTypesAndCatalogVersions
public <T extends AbstractAsSearchProfileModel> List<T> getSearchProfilesForIndexTypesAndCatalogVersions(List<String> indexTypes, List<CatalogVersionModel> catalogVersions) Description copied from interface:AsSearchProfileServiceReturns all search profiles for a list of index types and catalog versions.- Specified by:
getSearchProfilesForIndexTypesAndCatalogVersionsin interfaceAsSearchProfileService- Parameters:
indexTypes- - list of index typescatalogVersions- - list of catalog versions- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfilesForCatalogVersion
public <T extends AbstractAsSearchProfileModel> List<T> getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion) Description copied from interface:AsSearchProfileServiceReturns all search profiles for a specific catalog version.- Specified by:
getSearchProfilesForCatalogVersionin interfaceAsSearchProfileService- Parameters:
catalogVersion- - the catalog version- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfileForCode
public <T extends AbstractAsSearchProfileModel> Optional<T> getSearchProfileForCode(CatalogVersionModel catalogVersion, String code) Description copied from interface:AsSearchProfileServiceReturns the search profile a specific catalog version and code.- Specified by:
getSearchProfileForCodein interfaceAsSearchProfileService- Parameters:
catalogVersion- - the catalog versioncode- - the code- Returns:
- the search profile
-
getSearchProfiles
public <T extends AbstractAsSearchProfileModel> List<T> getSearchProfiles(String query, Map<String, Object> filters) Description copied from interface:AsSearchProfileServiceReturns search profiles.- Specified by:
getSearchProfilesin interfaceAsSearchProfileService- Parameters:
query- query parameter for filteringfilters- parameters for filtering- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfiles
public <T extends AbstractAsSearchProfileModel> SearchPageData<T> getSearchProfiles(String query, Map<String, Object> filters, SearchPageData<?> pagination) Description copied from interface:AsSearchProfileServiceReturns paginated search profiles.- Specified by:
getSearchProfilesin interfaceAsSearchProfileService- 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
-
cloneSearchProfile
Description copied from interface:AsSearchProfileServiceCreates a deep copy of the given search profile. The resulting object is not persisted yet in order to allow modifications like unique key adjustments etc.- Specified by:
cloneSearchProfilein interfaceAsSearchProfileService- Parameters:
original- - the original search profile- Returns:
- the deep copy of the search profile
-
getAsSearchProfileDao
-
setAsSearchProfileDao
-
getAsCloneStrategy
-
setAsCloneStrategy
-