Interface AsSearchProfileDao
- All Known Implementing Classes:
DefaultAsSearchProfileDao
public interface AsSearchProfileDao
The
AbstractAsSearchProfileModel DAO.-
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.
-
Method Details
-
findAllSearchProfiles
Finds all search profiles.- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfilesByIndexTypesAndCatalogVersions
<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.- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfilesByCatalogVersion
<T extends AbstractAsSearchProfileModel> List<T> findSearchProfilesByCatalogVersion(CatalogVersionModel catalogVersion) Finds all search profiles for a specific catalog version.- Returns:
- list of search profiles or empty list if no profile is found
-
findSearchProfileByCode
<T extends AbstractAsSearchProfileModel> Optional<T> findSearchProfileByCode(CatalogVersionModel catalogVersion, String code) Finds the search profile for a specific catalog version and code.- Parameters:
catalogVersion- - the catalog versioncode- - the code- Returns:
- the search profile
-
getSearchProfiles
<T extends AbstractAsSearchProfileModel> List<T> getSearchProfiles(String query, Map<String, Object> filters) Search for search profiles with filters.- Parameters:
query- query parameter for filteringfilters- parameters for search- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfiles
<T extends AbstractAsSearchProfileModel> SearchPageData<T> getSearchProfiles(String query, Map<String, Object> filters, SearchPageData<?> pagination) Search for search profiles with filters.- 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
-