Class DefaultIntegrationKeyToODataEntryGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.integrationkey.impl.DefaultIntegrationKeyToODataEntryGenerator
-
- All Implemented Interfaces:
IntegrationKeyToODataEntryGenerator
public class DefaultIntegrationKeyToODataEntryGenerator extends java.lang.Object implements IntegrationKeyToODataEntryGenerator
-
-
Constructor Summary
Constructors Constructor Description DefaultIntegrationKeyToODataEntryGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdecodeValue(java.lang.String value)org.apache.olingo.odata2.api.ep.entry.ODataEntrygenerate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey)Generates 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, java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)Generates a OData entry representing the Alias for the EntityType integrationKey property references.protected java.lang.StringgetEncoding()protected java.lang.StringgetIntegrationKey(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet, java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)protected java.util.Map<java.lang.String,java.lang.String>getKeyValuePerType(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey)protected java.lang.ObjectgetODataEntryProperty(org.apache.olingo.odata2.api.edm.EdmProperty property, java.lang.String value)protected java.util.Map<java.lang.Class<? extends org.apache.olingo.odata2.api.edm.EdmType>,java.util.function.Function<java.lang.String,java.lang.Object>>getPropertyConverters()protected org.apache.olingo.odata2.api.ep.entry.ODataEntrypopulateODataEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,java.lang.String> aliasValueMap)voidsetEncoding(java.lang.String encoding)
-
-
-
Method Detail
-
generate
public org.apache.olingo.odata2.api.ep.entry.ODataEntry generate(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey) throws org.apache.olingo.odata2.api.edm.EdmExceptionDescription 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, java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates) throws org.apache.olingo.odata2.api.edm.EdmExceptionDescription 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 java.lang.String getIntegrationKey(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet, java.util.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 java.util.Map<java.lang.String,java.lang.String> getKeyValuePerType(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey) throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
decodeValue
protected java.lang.String decodeValue(java.lang.String value)
-
populateODataEntry
protected org.apache.olingo.odata2.api.ep.entry.ODataEntry populateODataEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,java.lang.String> aliasValueMap) throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getODataEntryProperty
protected java.lang.Object getODataEntryProperty(org.apache.olingo.odata2.api.edm.EdmProperty property, java.lang.String value) throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getPropertyConverters
protected java.util.Map<java.lang.Class<? extends org.apache.olingo.odata2.api.edm.EdmType>,java.util.function.Function<java.lang.String,java.lang.Object>> getPropertyConverters()
-
getEncoding
protected java.lang.String getEncoding()
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
-