Class ItemConversionRequest

java.lang.Object
de.hybris.platform.odata2services.odata.persistence.AbstractRequest
de.hybris.platform.odata2services.odata.persistence.ItemConversionRequest

public class ItemConversionRequest extends AbstractRequest
  • Constructor Details

    • ItemConversionRequest

      protected ItemConversionRequest()
  • Method Details

    • itemConversionRequestBuilder

      public static ItemConversionRequest.ItemConversionRequestBuilder itemConversionRequestBuilder()
    • getValue

      public Object getValue()
    • getOptions

      public ConversionOptions getOptions()
    • setValue

      protected void setValue(Object value)
    • setOptions

      protected void setOptions(ConversionOptions options)
    • 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 time propertyConversionRequest(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 item Product has property "catalog", which refers to Catalog item, then conversion request for Product item will have conversion level 0, conversion request for Catalog item will have conversion level 1, and so on for any subsequent item referenced from the Catalog.
    • isPropertyValueShouldBeConverted

      public boolean isPropertyValueShouldBeConverted(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 List<String> getAllPropertyNames() throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException