Class DefaultIntegrationKeyToODataEntryGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.integrationkey.impl.DefaultIntegrationKeyToODataEntryGenerator
All Implemented Interfaces:
IntegrationKeyToODataEntryGenerator

public class DefaultIntegrationKeyToODataEntryGenerator extends Object implements IntegrationKeyToODataEntryGenerator
  • Constructor Details

    • DefaultIntegrationKeyToODataEntryGenerator

      public DefaultIntegrationKeyToODataEntryGenerator()
  • Method Details

    • generate

      public org.apache.olingo.odata2.api.ep.entry.ODataEntry generate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, String integrationKey) throws org.apache.olingo.odata2.api.edm.EdmException
      Description copied from interface: IntegrationKeyToODataEntryGenerator
      Generates a OData entry representing the Alias for the EntityType integrationKey property references.
      Specified by:
      generate in interface IntegrationKeyToODataEntryGenerator
      Parameters:
      entitySet - - EntitySet that is being posted to
      integrationKey - - integrationKey string for the item
      Returns:
      oDataEntry - represents the oDataEntry
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • generate

      public org.apache.olingo.odata2.api.ep.entry.ODataEntry generate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates) throws org.apache.olingo.odata2.api.edm.EdmException
      Description copied from interface: IntegrationKeyToODataEntryGenerator
      Generates a OData entry representing the Alias for the EntityType integrationKey property references.
      Specified by:
      generate in interface IntegrationKeyToODataEntryGenerator
      Parameters:
      entitySet - - EntitySet that is being posted to
      keyPredicates - - Key predicates that represents the integration key
      Returns:
      oDataEntry - represents the oDataEntry
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getIntegrationKey

      protected String getIntegrationKey(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet, List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getKeyValuePerType

      protected Map<String,String> getKeyValuePerType(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, String integrationKey) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • decodeValue

      protected String decodeValue(String value)
    • populateODataEntry

      protected org.apache.olingo.odata2.api.ep.entry.ODataEntry populateODataEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String,String> aliasValueMap) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getODataEntryProperty

      protected Object getODataEntryProperty(org.apache.olingo.odata2.api.edm.EdmProperty property, String value) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getPropertyConverters

      protected Map<Class<? extends org.apache.olingo.odata2.api.edm.EdmType>,Function<String,Object>> getPropertyConverters()
    • getEncoding

      protected String getEncoding()
    • setEncoding

      public void setEncoding(String encoding)