Class GenericQuerySearchProvider
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cockpit.services.PropertyBasedService
de.hybris.platform.cockpit.services.search.impl.AbstractSearchProvider
de.hybris.platform.cockpit.services.search.impl.GenericQuerySearchProvider
- All Implemented Interfaces:
SearchProvider
- Direct Known Subclasses:
CmsSearchProvider,ProductPerspectiveQueryProvider
Search provider based upon
GenericSearchParameterDescriptor. It uses generic query when searching for item
data.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Field Summary
Fields inherited from class de.hybris.platform.cockpit.services.search.impl.AbstractSearchProvider
SIMPLE_OPERATORFields inherited from interface de.hybris.platform.cockpit.services.search.SearchProvider
SELECTED_OBJECT_TEMPLATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCondition(GenericCondition condition, List<GenericCondition> conditions) protected voidprotected voidprotected GenericConditioncreateAdvancedSearchCondition(Query query, GenericQuery genQuery) protected voidcreateAndAddCondition(SearchParameterValue searchParameterValue, List<GenericCondition> searchConditions, GenericQuerySearchProvider.GenericConditionTranslatorContext context) protected GenericConditioncreateBlacklistCondition(Query query, GenericQuery genQuery) createConditions(Query query, GenericQuery genQuery) Creates the search conditions to be used when searching.protected GenericConditioncreateExcludeItemsCondition(Collection<TypedObject> excludeItems) protected GenericConditionprotected GenericSearchOrderBycreateOrderBy(Query query) protected GenericConditioncreateSimpleSearchCondition(Query query, GenericQuery genericQuery) protected ComposedTypeextractRootType(Collection<GenericSearchParameterDescriptor> activeParameters) Deprecated.protected ComposedTypeModelextractRootTypeModel(Collection<GenericSearchParameterDescriptor> activeParameters) protected StringgetCollectionsPKList(List<ObjectCollection> collections) protected CommonI18NServiceGets the default root type - search result will contain items of this type.protected FlexibleSearchServiceprotected GenericSearchServiceprotected Set<ComposedTypeModel>getPermittedTypes(ComposedTypeModel rootType, Set<SearchType> types, boolean exludeSubTypes) protected Set<ComposedType>getPermittedTypes(ComposedType rootType, Set<SearchType> types, boolean exludeSubTypes) Deprecated.since 6.3, usegetPermittedTypes(ComposedTypeModel, Set, boolean)protected Set<ObjectTemplate>getSelectedTemplates(Query query) protected Operatorprotected TypeServiceprotected booleanisEmpty_(GenericSearchParameterDescriptor descriptor, Object value) protected BaseTypematchObjectType(ItemModel result) protected BaseTypematchObjectType(Item result) Deprecated.since 6.3, usematchObjectType(ItemModel)protected Set<ItemTemplate>matchTemplates(Set<ObjectTemplate> templates) protected ExtendedSearchResultperformQuery(Query query, GenericQuery genQuery) queryFacets(ExtendedSearchResult result, Set<Facet> facets) Performs a facet query upon a existing search result.Performs a query.voidsetCockpitTypeService(TypeService typeService) voidsetDefaultRootType(SearchType defaultRootType) Sets the default root type.voidsetModelService(ModelService modelService) protected List<ResultObject>wrapModelResults(List<Object> rawList) protected List<ResultObject>wrapResults(List<Object> rawList) Deprecated.since 6.3, usewrapModelResults(List)insteadMethods inherited from class de.hybris.platform.cockpit.services.search.impl.AbstractSearchProvider
getAllSupportedFacets, getAllSupportedFacets, getConditionTranslatorRegistry, setConditionTranslatorRegistryMethods inherited from class de.hybris.platform.cockpit.services.PropertyBasedService
getAllSupportedPropertyDescriptorsMethods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, setLabelResolver
-
Constructor Details
-
GenericQuerySearchProvider
public GenericQuerySearchProvider()
-
-
Method Details
-
getDefaultRootType
Description copied from interface:SearchProviderGets the default root type - search result will contain items of this type.- Returns:
- the default root type of the provider
-
setDefaultRootType
Description copied from interface:SearchProviderSets the default root type. We will expect items of this type in the search result.- Parameters:
defaultRootType- the new default root type
-
getTypeService
- Overrides:
getTypeServicein classAbstractServiceImpl
-
setCockpitTypeService
- Overrides:
setCockpitTypeServicein classAbstractServiceImpl
-
getSlayerTypeService
-
matchObjectType
Deprecated.since 6.3, usematchObjectType(ItemModel) -
matchObjectType
-
getPermittedTypes
@Deprecated protected Set<ComposedType> getPermittedTypes(ComposedType rootType, Set<SearchType> types, boolean exludeSubTypes) Deprecated.since 6.3, usegetPermittedTypes(ComposedTypeModel, Set, boolean) -
getPermittedTypes
protected Set<ComposedTypeModel> getPermittedTypes(ComposedTypeModel rootType, Set<SearchType> types, boolean exludeSubTypes) -
extractRootType
@Deprecated protected ComposedType extractRootType(Collection<GenericSearchParameterDescriptor> activeParameters) Deprecated.since 6.3, useextractRootTypeModel(Collection) -
extractRootTypeModel
protected ComposedTypeModel extractRootTypeModel(Collection<GenericSearchParameterDescriptor> activeParameters) -
performQuery
-
wrapResults
Deprecated.since 6.3, usewrapModelResults(List)instead -
wrapModelResults
-
search
Description copied from class:AbstractSearchProviderPerforms a query.- Specified by:
searchin interfaceSearchProvider- Specified by:
searchin classAbstractSearchProvider- Parameters:
query- the query containing all values and settings- Returns:
- the extended search result which is a simple POJO that contains result set and some additional information.
-
beforeSearch
protected void beforeSearch() -
afterSearch
protected void afterSearch() -
getCollectionsPKList
-
createConditions
Creates the search conditions to be used when searching. The default implementation of this method calls the following methods in order to create the search conditions:createSimpleSearchCondition(Query, GenericQuery)createExcludeItemsCondition(Collection)createObjectTemplateCondition(Query)createAdvancedSearchCondition(Query, GenericQuery)
genQuery- Parameters:
query- the querygenQuery- the generic query- Returns:
- the search conditions to be used when searching
-
addCondition
-
createOrderBy
-
createAndAddCondition
protected void createAndAddCondition(SearchParameterValue searchParameterValue, List<GenericCondition> searchConditions, GenericQuerySearchProvider.GenericConditionTranslatorContext context) -
createAdvancedSearchCondition
-
createExcludeItemsCondition
-
createSimpleSearchCondition
-
getSimpleOperator
-
createObjectTemplateCondition
-
createBlacklistCondition
-
getSelectedTemplates
-
matchTemplates
-
isEmpty_
-
queryFacets
Description copied from class:AbstractSearchProviderPerforms a facet query upon a existing search result.- Specified by:
queryFacetsin classAbstractSearchProvider- Parameters:
result- the existing search resultfacets- the facets to be queried
-
getObjectCollectionService
-
setModelService
- Overrides:
setModelServicein classAbstractServiceImpl
-
getFlexibleSearchService
-
getGenericSearchService
-
getCommonI18NService
-
extractRootTypeModel(Collection)