Class DefaultAsSearchProfileDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<T>
de.hybris.platform.adaptivesearch.daos.impl.AbstractAsGenericDao<AbstractAsSearchProfileModel>
de.hybris.platform.adaptivesearch.daos.impl.DefaultAsSearchProfileDao
- All Implemented Interfaces:
AsSearchProfileDao,GenericDao<AbstractAsSearchProfileModel>
public class DefaultAsSearchProfileDao
extends AbstractAsGenericDao<AbstractAsSearchProfileModel>
implements AsSearchProfileDao
Default implementation of
AsSearchProfileDao.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends AbstractAsSearchProfileModel>
List<T>Finds all search profiles.<T extends AbstractAsSearchProfileModel>
Optional<T>findSearchProfileByCode(CatalogVersionModel catalogVersion, String code) Finds the search profile for a specific catalog version and code.<T extends AbstractAsSearchProfileModel>
List<T>findSearchProfilesByCatalogVersion(CatalogVersionModel catalogVersion) Finds all search profiles for a specific catalog version.<T extends AbstractAsSearchProfileModel>
List<T>findSearchProfilesByIndexTypesAndCatalogVersions(List<String> indexTypes, List<CatalogVersionModel> catalogVersions) Finds all search profiles for a list of index types and catalog versions.<T extends AbstractAsSearchProfileModel>
List<T>getSearchProfiles(String query, Map<String, Object> filters) Search for search profiles with filters.<T extends AbstractAsSearchProfileModel>
SearchPageData<T>getSearchProfiles(String query, Map<String, Object> filters, SearchPageData<?> pagination) Search for search profiles with filters.Methods inherited from class de.hybris.platform.adaptivesearch.daos.impl.AbstractAsGenericDao
appendAndClause, appendClause, appendLikeClause, appendOrderByClause, appendWhereClause, buildPagination, buildQuery, buildQuery, buildSearchPageData, createQuery, queryList, queryListMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Field Details
-
BASE_QUERY
- See Also:
-
-
Constructor Details
-
DefaultAsSearchProfileDao
public DefaultAsSearchProfileDao()Creates DAO forAbstractAsSearchProfileModel.
-
-
Method Details
-
findAllSearchProfiles
Description copied from interface:AsSearchProfileDaoFinds all search profiles.- Specified by:
findAllSearchProfilesin interfaceAsSearchProfileDao- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfilesByIndexTypesAndCatalogVersions
public <T extends AbstractAsSearchProfileModel> List<T> findSearchProfilesByIndexTypesAndCatalogVersions(List<String> indexTypes, List<CatalogVersionModel> catalogVersions) Description copied from interface:AsSearchProfileDaoFinds all search profiles for a list of index types and catalog versions.- Specified by:
findSearchProfilesByIndexTypesAndCatalogVersionsin interfaceAsSearchProfileDao- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfilesByCatalogVersion
public <T extends AbstractAsSearchProfileModel> List<T> findSearchProfilesByCatalogVersion(CatalogVersionModel catalogVersion) Description copied from interface:AsSearchProfileDaoFinds all search profiles for a specific catalog version.- Specified by:
findSearchProfilesByCatalogVersionin interfaceAsSearchProfileDao- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfileByCode
public <T extends AbstractAsSearchProfileModel> Optional<T> findSearchProfileByCode(CatalogVersionModel catalogVersion, String code) Description copied from interface:AsSearchProfileDaoFinds the search profile for a specific catalog version and code.- Specified by:
findSearchProfileByCodein interfaceAsSearchProfileDao- 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:AsSearchProfileDaoSearch for search profiles with filters.- Specified by:
getSearchProfilesin interfaceAsSearchProfileDao- Parameters:
query- query parameter for filteringfilters- parameters for search- 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:AsSearchProfileDaoSearch for search profiles with filters.- Specified by:
getSearchProfilesin interfaceAsSearchProfileDao- Parameters:
query- query parameter for filteringfilters- parameters for searchpagination- holder of pagination data and sort options- Returns:
- list of search profiles or empty list if no profile is found
-