Class DefaultAsSearchProfileService
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.services.impl.DefaultAsSearchProfileService
-
- All Implemented Interfaces:
AsSearchProfileService
public class DefaultAsSearchProfileService extends java.lang.Object implements AsSearchProfileService
Default implementation ofAsSearchProfileService
.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsSearchProfileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends AbstractAsSearchProfileModel>
TcloneSearchProfile(T original)
Creates a deep copy of the given search profile.<T extends AbstractAsSearchProfileModel>
java.util.List<T>getAllSearchProfiles()
Returns all search profiles.AsCloneStrategy
getAsCloneStrategy()
AsSearchProfileDao
getAsSearchProfileDao()
<T extends AbstractAsSearchProfileModel>
java.util.Optional<T>getSearchProfileForCode(CatalogVersionModel catalogVersion, java.lang.String code)
Returns the search profile a specific catalog version and code.<T extends AbstractAsSearchProfileModel>
java.util.List<T>getSearchProfiles(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> filters)
Returns search profiles.<T extends AbstractAsSearchProfileModel>
SearchPageData<T>getSearchProfiles(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> filters, SearchPageData<?> pagination)
Returns paginated search profiles.<T extends AbstractAsSearchProfileModel>
java.util.List<T>getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion)
Returns all search profiles for a specific catalog version.<T extends AbstractAsSearchProfileModel>
java.util.List<T>getSearchProfilesForIndexTypesAndCatalogVersions(java.util.List<java.lang.String> indexTypes, java.util.List<CatalogVersionModel> catalogVersions)
Returns all search profiles for a list of index types and catalog versions.void
setAsCloneStrategy(AsCloneStrategy asCloneStrategy)
void
setAsSearchProfileDao(AsSearchProfileDao asSearchProfileDao)
-
-
-
Method Detail
-
getAllSearchProfiles
public <T extends AbstractAsSearchProfileModel> java.util.List<T> getAllSearchProfiles()
Description copied from interface:AsSearchProfileService
Returns all search profiles.- Specified by:
getAllSearchProfiles
in interfaceAsSearchProfileService
- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfilesForIndexTypesAndCatalogVersions
public <T extends AbstractAsSearchProfileModel> java.util.List<T> getSearchProfilesForIndexTypesAndCatalogVersions(java.util.List<java.lang.String> indexTypes, java.util.List<CatalogVersionModel> catalogVersions)
Description copied from interface:AsSearchProfileService
Returns all search profiles for a list of index types and catalog versions.- Specified by:
getSearchProfilesForIndexTypesAndCatalogVersions
in 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> java.util.List<T> getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion)
Description copied from interface:AsSearchProfileService
Returns all search profiles for a specific catalog version.- Specified by:
getSearchProfilesForCatalogVersion
in interfaceAsSearchProfileService
- Parameters:
catalogVersion
- - the catalog version- Returns:
- list of search profiles or empty list if no profile is found
-
getSearchProfileForCode
public <T extends AbstractAsSearchProfileModel> java.util.Optional<T> getSearchProfileForCode(CatalogVersionModel catalogVersion, java.lang.String code)
Description copied from interface:AsSearchProfileService
Returns the search profile a specific catalog version and code.- Specified by:
getSearchProfileForCode
in interfaceAsSearchProfileService
- Parameters:
catalogVersion
- - the catalog versioncode
- - the code- Returns:
- the search profile
-
getSearchProfiles
public <T extends AbstractAsSearchProfileModel> java.util.List<T> getSearchProfiles(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> filters)
Description copied from interface:AsSearchProfileService
Returns search profiles.- Specified by:
getSearchProfiles
in 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(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> filters, SearchPageData<?> pagination)
Description copied from interface:AsSearchProfileService
Returns paginated search profiles.- Specified by:
getSearchProfiles
in 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
public <T extends AbstractAsSearchProfileModel> T cloneSearchProfile(T original)
Description copied from interface:AsSearchProfileService
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.- Specified by:
cloneSearchProfile
in interfaceAsSearchProfileService
- Parameters:
original
- - the original search profile- Returns:
- the deep copy of the search profile
-
getAsSearchProfileDao
public AsSearchProfileDao getAsSearchProfileDao()
-
setAsSearchProfileDao
public void setAsSearchProfileDao(AsSearchProfileDao asSearchProfileDao)
-
getAsCloneStrategy
public AsCloneStrategy getAsCloneStrategy()
-
setAsCloneStrategy
public void setAsCloneStrategy(AsCloneStrategy asCloneStrategy)
-
-