public class DefaultItemLookupStrategy extends java.lang.Object implements ItemLookupStrategy
| Constructor and Description |
|---|
DefaultItemLookupStrategy() |
public ItemModel lookup(ItemLookupRequest lookupRequest) throws EdmException
ItemLookupStrategyItem on the commerce suite based on the given information.lookup in interface ItemLookupStrategylookupRequest - request informationEdmException - when request is invalidpublic int count(ItemLookupRequest lookupRequest) throws EdmException
ItemLookupStrategycount in interface ItemLookupStrategylookupRequest - a request specifying an item type, at a minimum, and possibly other conditions. For example, the
request may point to the objects nested in the request's base item type and referred by the navigation segments.EdmException - if the request is invalidpublic ItemLookupResult<ItemModel> lookupItems(ItemLookupRequest lookupRequest) throws EdmException
ItemLookupStrategyItems in the commerce suite based on the given request parameters.lookupItems in interface ItemLookupStrategylookupRequest - request information conditions, i.e. type of items to find, page conditionsEdmException - when request is invalidprotected ItemModel lookupInternal(ItemLookupRequest lookupRequest) throws EdmException
EdmExceptionprotected SearchResult<ItemModel> search(FlexibleSearchQueryBuilder builder)
protected SearchResult<ItemModel> search(FlexibleSearchQuery query)
protected FlexibleSearchQuery buildQuery(FlexibleSearchQueryBuilder builder)
protected FlexibleSearchQueryBuilder queryBuilder(ItemLookupRequest lookupRequest) throws EdmException
EdmExceptionprotected boolean isCollectionNavigationPropertyQuery(ItemLookupRequest lookupRequest)
protected java.util.Map<java.lang.String,java.lang.Object> toMap(ODataEntry oDataEntry)
protected FlexibleSearchQueryBuilder buildWhereForKeyNavProperties(FlexibleSearchQueryBuilder queryBuilder, ItemLookupRequest lookupRequest) throws EdmException
EdmExceptionprotected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected IntegrationObjectService getIntegrationObjectService()
public void setIntegrationObjectService(IntegrationObjectService integrationObjectService)
protected ItemLookupRequestFactory getItemLookupRequestFactory()
public void setItemLookupRequestFactory(ItemLookupRequestFactory itemLookupRequestFactory)
Copyright © 2018 SAP SE. All Rights Reserved.