Class ItemConversionRequest
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.AbstractRequest
-
- de.hybris.platform.odata2services.odata.persistence.ItemConversionRequest
-
public class ItemConversionRequest extends AbstractRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItemConversionRequest.ItemConversionRequestBuilder-
Nested classes/interfaces inherited from class de.hybris.platform.odata2services.odata.persistence.AbstractRequest
AbstractRequest.AbstractRequestBuilder<T extends AbstractRequest.AbstractRequestBuilder,R extends AbstractRequest>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedItemConversionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getAllPropertyNames()intgetConversionLevel()Determines how deep the item being converted by this request is located in the object graph.ItemModelgetItemModel()Deprecated, for removal: This API element is subject to removal in a future version.usegetValue().ConversionOptionsgetOptions()java.lang.ObjectgetValue()booleanisPropertyValueShouldBeConverted(java.lang.String property)Determines whether the specified property value should be subsequently converted to an ODataEntry or not.static ItemConversionRequest.ItemConversionRequestBuilderitemConversionRequestBuilder()ItemConversionRequestpropertyConversionRequest(java.lang.String propertyName, ItemModel item)Deprecated, for removal: This API element is subject to removal in a future version.ItemConversionRequestpropertyConversionRequest(java.lang.String propertyName, java.lang.Object value)protected voidsetItemModel(ItemModel itemModel)Deprecated, for removal: This API element is subject to removal in a future version.usesetValue(Object)protected voidsetOptions(ConversionOptions options)protected voidsetValue(java.lang.Object value)-
Methods inherited from class de.hybris.platform.odata2services.odata.persistence.AbstractRequest
getAcceptLocale, getEntitySet, getEntitySetReferencedByProperty, getEntityType, getIntegrationObjectCode, getPropertyTypeName, setAcceptLocale, setEntitySet, setEntityType, setIntegrationObjectCode
-
-
-
-
Method Detail
-
itemConversionRequestBuilder
public static ItemConversionRequest.ItemConversionRequestBuilder itemConversionRequestBuilder()
-
getItemModel
@Deprecated(since="1905.09-CEP", forRemoval=true) public ItemModel getItemModel()Deprecated, for removal: This API element is subject to removal in a future version.usegetValue(). If item model was passed tosetValue(Object)method, this method will return the set value; otherwise this method returnsnullandgetValue()returns the set value.
-
getValue
public java.lang.Object getValue()
-
getOptions
public ConversionOptions getOptions()
-
setItemModel
@Deprecated(since="1905.09-CEP", forRemoval=true) protected void setItemModel(ItemModel itemModel)Deprecated, for removal: This API element is subject to removal in a future version.usesetValue(Object)
-
setValue
protected void setValue(java.lang.Object value)
-
setOptions
protected void setOptions(ConversionOptions options)
-
propertyConversionRequest
@Deprecated(since="1905.09-CEP", forRemoval=true) public ItemConversionRequest propertyConversionRequest(java.lang.String propertyName, ItemModel item) throws org.apache.olingo.odata2.api.edm.EdmExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
propertyConversionRequest
public ItemConversionRequest propertyConversionRequest(java.lang.String propertyName, java.lang.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
public boolean isPropertyValueShouldBeConverted(java.lang.String property)
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
public java.util.List<java.lang.String> getAllPropertyNames() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
-