public class DefaultItemLookupRequestFactory extends java.lang.Object implements ItemLookupRequestFactory
ItemLookupRequestFactory| Constructor and Description |
|---|
DefaultItemLookupRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder |
buildWithFilter(de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder builder,
UriInfo uriInfo,
ODataContext context) |
ItemLookupRequest |
create(ODataContext context,
EdmEntitySet edmEntitySet,
<any> attribute)
Creates an
ItemLookupRequest from the given parameters |
ItemLookupRequest |
create(ODataContext context,
EdmEntitySet edmEntitySet,
ODataEntry oDataEntry,
java.lang.String integrationKey)
Creates an
ItemLookupRequest that can be used to filter
items matching the integration key |
ItemLookupRequest |
create(UriInfo uriInfo,
ODataContext context,
java.lang.String contentType)
Creates an
ItemLookupRequest from the given parameters |
protected ExpressionVisitor |
createExpressionVisitor(UriInfo uriInfo,
ODataContext context) |
ItemLookupRequest |
createFrom(ItemLookupRequest request,
EdmEntitySet entitySet,
ODataEntry oDataEntry)
Creates an
ItemLookupRequest from the given parameters |
protected java.lang.Integer |
deriveSkip(UriInfo uriInfo) |
protected java.lang.Integer |
deriveTop(java.lang.Integer uriInfoTop) |
protected ExpressionVisitorFactory |
getExpressionVisitorFactory() |
protected java.lang.String |
getIntegrationKey(EdmEntitySet edmEntitySet,
java.util.List<KeyPredicate> keyPredicates) |
protected IntegrationKeyToODataEntryGenerator |
getIntegrationKeyToODataEntryGenerator() |
protected ODataContextLanguageExtractor |
getLocaleExtractor() |
protected ODataServicesConfiguration |
getODataServicesConfiguration() |
protected ServiceNameExtractor |
getServiceNameExtractor() |
protected java.lang.String |
getServiceNameFromContext(ODataContext context,
java.lang.String integrationKey) |
protected static boolean |
hasKey(UriInfo uriInfo) |
void |
setExpressionVisitorFactory(ExpressionVisitorFactory expressionVisitorFactory) |
void |
setIntegrationKeyToODataEntryGenerator(IntegrationKeyToODataEntryGenerator integrationKeyToODataEntryGenerator) |
void |
setLocaleExtractor(ODataContextLanguageExtractor localeExtractor) |
void |
setODataServicesConfiguration(ODataServicesConfiguration oDataServicesConfiguration) |
void |
setServiceNameExtractor(ServiceNameExtractor serviceNameExtractor) |
public ItemLookupRequest create(UriInfo uriInfo, ODataContext context, java.lang.String contentType)
ItemLookupRequestFactoryItemLookupRequest from the given parameterscreate in interface ItemLookupRequestFactoryuriInfo - Used to create the ItemLookupRequestcontext - Used to create the ItemLookupRequestcontentType - Used to create the ItemLookupRequestpublic ItemLookupRequest create(ODataContext context, EdmEntitySet edmEntitySet, ODataEntry oDataEntry, java.lang.String integrationKey) throws EdmException
ItemLookupRequestFactoryItemLookupRequest that can be used to filter
items matching the integration keycreate in interface ItemLookupRequestFactorycontext - Used to create the ItemLookupRequestedmEntitySet - Used to create the ItemLookupRequestoDataEntry - Used to create the ItemLookupRequestintegrationKey - Used to create the ItemLookupRequestEdmException - if OData problempublic ItemLookupRequest create(ODataContext context, EdmEntitySet edmEntitySet, <any> attribute) throws EdmException
ItemLookupRequestFactoryItemLookupRequest from the given parameterscreate in interface ItemLookupRequestFactorycontext - Used to create the ItemLookupRequestedmEntitySet - Used to create the ItemLookupRequestattribute - Used to create the ItemLookupRequestEdmExceptionpublic ItemLookupRequest createFrom(ItemLookupRequest request, EdmEntitySet entitySet, ODataEntry oDataEntry) throws EdmException
ItemLookupRequestFactoryItemLookupRequest from the given parameterscreateFrom in interface ItemLookupRequestFactoryrequest - base request to create new request fromentitySet - entity set of the new lookup requestoDataEntry - the new ODataEntry for the lookup requestEdmException - if OData problemprotected de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder buildWithFilter(de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder builder,
UriInfo uriInfo,
ODataContext context)
throws ExceptionVisitExpression,
ODataApplicationException
ExceptionVisitExpressionODataApplicationExceptionprotected ExpressionVisitor createExpressionVisitor(UriInfo uriInfo,
ODataContext context)
protected static boolean hasKey(UriInfo uriInfo)
protected java.lang.Integer deriveSkip(UriInfo uriInfo)
protected java.lang.Integer deriveTop(java.lang.Integer uriInfoTop)
protected java.lang.String getServiceNameFromContext(ODataContext context,
java.lang.String integrationKey)
protected java.lang.String getIntegrationKey(EdmEntitySet edmEntitySet,
java.util.List<KeyPredicate> keyPredicates)
throws EdmException
EdmExceptionprotected ODataServicesConfiguration getODataServicesConfiguration()
protected IntegrationKeyToODataEntryGenerator getIntegrationKeyToODataEntryGenerator()
public void setIntegrationKeyToODataEntryGenerator(IntegrationKeyToODataEntryGenerator integrationKeyToODataEntryGenerator)
protected ODataContextLanguageExtractor getLocaleExtractor()
public void setLocaleExtractor(ODataContextLanguageExtractor localeExtractor)
protected ServiceNameExtractor getServiceNameExtractor()
public void setServiceNameExtractor(ServiceNameExtractor serviceNameExtractor)
public void setODataServicesConfiguration(ODataServicesConfiguration oDataServicesConfiguration)
protected ExpressionVisitorFactory getExpressionVisitorFactory()
public void setExpressionVisitorFactory(ExpressionVisitorFactory expressionVisitorFactory)
Copyright © 2018 SAP SE. All Rights Reserved.