Interface AsSearchProfileService
- All Known Implementing Classes:
DefaultAsSearchProfileService
public interface AsSearchProfileService
Service that provides basic functionality for search profiles.
-
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.
-
Method Details
-
getAllSearchProfiles
Returns all search profiles.- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfilesForIndexTypesAndCatalogVersions
<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.- Parameters:
indexTypes- - list of index typescatalogVersions- - list of catalog versions- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfilesForCatalogVersion
<T extends AbstractAsSearchProfileModel> List<T> getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion) Returns all search profiles for a specific catalog version.- Parameters:
catalogVersion- - the catalog version- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfileForCode
<T extends AbstractAsSearchProfileModel> Optional<T> getSearchProfileForCode(CatalogVersionModel catalogVersion, String code) Returns the search profile 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) Returns search profiles.- Parameters:
query- query parameter for filteringfilters- parameters for filtering- 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) Returns paginated search profiles.- 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
Creates 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.- Parameters:
original- - the original search profile- Returns:
- the deep copy of the search profile
-