Class ItemConversionRequest
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.AbstractRequest
de.hybris.platform.odata2services.odata.persistence.ItemConversionRequest
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.hybris.platform.odata2services.odata.persistence.AbstractRequest
AbstractRequest.AbstractRequestBuilder<T extends AbstractRequest.AbstractRequestBuilder,R extends AbstractRequest> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDetermines how deep the item being converted by this request is located in the object graph.getValue()booleanisPropertyValueShouldBeConverted(String property) Determines whether the specified property value should be subsequently converted to an ODataEntry or not.propertyConversionRequest(String propertyName, Object value) protected voidsetOptions(ConversionOptions options) protected voidMethods inherited from class de.hybris.platform.odata2services.odata.persistence.AbstractRequest
getAcceptLocale, getEntitySet, getEntitySetReferencedByProperty, getEntityType, getIntegrationObjectCode, getPropertyTypeName, setAcceptLocale, setEntitySet, setEntityType, setIntegrationObjectCode
-
Constructor Details
-
ItemConversionRequest
protected ItemConversionRequest()
-
-
Method Details
-
itemConversionRequestBuilder
-
getValue
-
getOptions
-
setValue
-
setOptions
-
propertyConversionRequest
public ItemConversionRequest propertyConversionRequest(String propertyName, Object value) throws org.apache.olingo.odata2.api.edm.EdmException - Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getConversionLevel
public int getConversionLevel()Determines how deep the item being converted by this request is located in the object graph. Every timepropertyConversionRequest(String, Object)is called it increases the conversion level (the distance of the resulting request from the very original conversion request).- Returns:
- number of times
propertyConversionRequest(String, Object)was called from the original request to get this request or 0, if this request is the original request. For example, if an itemProducthas property "catalog", which refers toCatalogitem, then conversion request forProductitem will have conversion level 0, conversion request forCatalogitem will have conversion level 1, and so on for any subsequent item referenced from theCatalog.
-
isPropertyValueShouldBeConverted
Determines whether the specified property value should be subsequently converted to an ODataEntry or not.- Parameters:
property- name of the item property- Returns:
true, if the property is a key property or it is next segment in the navigation/expand path specified for the request;false, otherwise.
-
getAllPropertyNames
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-