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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdecodeValue(String value) org.apache.olingo.odata2.api.ep.entry.ODataEntryGenerates a OData entry representing the Alias for the EntityType integrationKey property references.org.apache.olingo.odata2.api.ep.entry.ODataEntrygenerate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates) Generates a OData entry representing the Alias for the EntityType integrationKey property references.protected Stringprotected StringgetIntegrationKey(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet, List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates) getKeyValuePerType(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, String integrationKey) protected ObjectgetODataEntryProperty(org.apache.olingo.odata2.api.edm.EdmProperty property, String value) protected org.apache.olingo.odata2.api.ep.entry.ODataEntrypopulateODataEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String, String> aliasValueMap) voidsetEncoding(String encoding)
-
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:IntegrationKeyToODataEntryGeneratorGenerates a OData entry representing the Alias for the EntityType integrationKey property references.- Specified by:
generatein interfaceIntegrationKeyToODataEntryGenerator- Parameters:
entitySet- - EntitySet that is being posted tointegrationKey- - 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:IntegrationKeyToODataEntryGeneratorGenerates a OData entry representing the Alias for the EntityType integrationKey property references.- Specified by:
generatein interfaceIntegrationKeyToODataEntryGenerator- Parameters:
entitySet- - EntitySet that is being posted tokeyPredicates- - 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
-
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
-
getEncoding
-
setEncoding
-