public class ProductPerspectiveQueryProvider extends GenericQuerySearchProvider
GenericQuerySearchProvider.GenericConditionTranslatorContext| Modifier and Type | Field and Description |
|---|---|
static String |
CATALOG_VERSION_FILTER |
static String |
SELECTED_CATALOG_VERSIONS |
static String |
SELECTED_CATEGORIES |
SIMPLE_OPERATORSELECTED_OBJECT_TEMPLATE| Constructor and Description |
|---|
ProductPerspectiveQueryProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterSearch() |
protected void |
beforeSearch() |
protected GenericCondition |
createCatalogConditions(Collection<CatalogVersionModel> selectedVersions,
Collection<CategoryModel> selectedCategories) |
List<GenericCondition> |
createConditions(Query query,
GenericQuery genQuery)
In addition to
GenericQuerySearchProvider.createConditions(Query, GenericQuery) search conditions based on
the currently selected catalogs and/or categories are added. |
protected Operator |
getCatalogSearchOperator()
Grabs the configuration of the default search operator from the cockpit configuration file and returns it.
|
int |
getMaxCategoryCount() |
CatalogService |
getProductCockpitCatalogService() |
protected Collection<CatalogVersionModel> |
getVersionOnlyCatalogs(Collection<CatalogVersionModel> versions,
Collection<CategoryModel> categories)
Filters catalog versions by selected categories.
|
void |
setMaxCategoryCount(int maxCategoryCount) |
void |
setProductCockpitCatalogService(CatalogService productCockpitCatalogService) |
addCondition, createAdvancedSearchCondition, createAndAddCondition, createBlacklistCondition, createExcludeItemsCondition, createObjectTemplateCondition, createOrderBy, createSimpleSearchCondition, extractRootType, extractRootTypeModel, getCollectionsPKList, getCommonI18NService, getDefaultRootType, getFlexibleSearchService, getGenericSearchService, getObjectCollectionService, getPermittedTypes, getPermittedTypes, getSelectedTemplates, getSimpleOperator, getSlayerTypeService, getTypeService, isEmpty_, matchObjectType, matchObjectType, matchTemplates, performQuery, queryFacets, search, setCockpitTypeService, setDefaultRootType, setModelService, wrapModelResults, wrapResultsgetAllSupportedFacets, getAllSupportedFacets, getConditionTranslatorRegistry, setConditionTranslatorRegistrygetAllSupportedPropertyDescriptorsgetEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, setLabelResolverpublic static final String SELECTED_CATEGORIES
public static final String SELECTED_CATALOG_VERSIONS
public static final String CATALOG_VERSION_FILTER
public CatalogService getProductCockpitCatalogService()
public void setProductCockpitCatalogService(CatalogService productCockpitCatalogService)
public List<GenericCondition> createConditions(Query query, GenericQuery genQuery)
GenericQuerySearchProvider.createConditions(Query, GenericQuery) search conditions based on
the currently selected catalogs and/or categories are added.createConditions in class GenericQuerySearchProviderquery - the querygenQuery - the generic queryGenericQuerySearchProvider.createConditions(Query, GenericQuery)protected void beforeSearch()
beforeSearch in class GenericQuerySearchProviderprotected void afterSearch()
afterSearch in class GenericQuerySearchProviderprotected GenericCondition createCatalogConditions(Collection<CatalogVersionModel> selectedVersions, Collection<CategoryModel> selectedCategories)
protected Operator getCatalogSearchOperator()
protected Collection<CatalogVersionModel> getVersionOnlyCatalogs(Collection<CatalogVersionModel> versions, Collection<CategoryModel> categories)
versions - selected versionscategories - selected categoriespublic void setMaxCategoryCount(int maxCategoryCount)
public int getMaxCategoryCount()
Copyright © 2017 SAP SE. All Rights Reserved.