Class DefaultODataEntryToIntegrationItemConverter
- java.lang.Object
-
- de.hybris.platform.odata2services.converter.DefaultODataEntryToIntegrationItemConverter
-
- All Implemented Interfaces:
ODataEntryToIntegrationItemConverter
public class DefaultODataEntryToIntegrationItemConverter extends java.lang.Object implements ODataEntryToIntegrationItemConverter
-
-
Constructor Summary
Constructors Constructor Description DefaultODataEntryToIntegrationItemConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegrationItemconvert(org.apache.olingo.odata2.api.processor.ODataContext context, @NotNull org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, @NotNull org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)Performs the conversion.protected DefaultIntegrationItemcreateIntegrationItem(TypeDescriptor typeDesc, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)Instantiates an integration item.protected ItemTypeDescriptorServicegetItemTypeDescriptorService()protected ModelEntityServicegetModelEntityService()protected ServiceNameExtractorgetServiceNameExtractor()voidsetItemTypeDescriptorService(ItemTypeDescriptorService service)voidsetModelEntityService(ModelEntityService service)voidsetServiceNameExtractor(ServiceNameExtractor extractor)
-
-
-
Method Detail
-
convert
public IntegrationItem convert(org.apache.olingo.odata2.api.processor.ODataContext context, @NotNull @NotNull org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, @NotNull @NotNull org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) throws org.apache.olingo.odata2.api.edm.EdmException
Description copied from interface:ODataEntryToIntegrationItemConverterPerforms the conversion.- Specified by:
convertin interfaceODataEntryToIntegrationItemConverter- Parameters:
context- context of the request containing the entryentitySet- metadata about the entry receivedentry- the entry received to be converted to theIntegrationItem- Returns:
- an integration item converted from the entry
- Throws:
org.apache.olingo.odata2.api.edm.EdmException- if there is a problem with the metadata provided by theentitySet
-
createIntegrationItem
protected DefaultIntegrationItem createIntegrationItem(TypeDescriptor typeDesc, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
Instantiates an integration item.- Parameters:
typeDesc- type descriptor to specify what type the item should haveentitySet- an ODataSet to which the OData entry is being postedentry- payload of the request- Returns:
- an integration item instance corresponding to the parameters specified
-
setModelEntityService
public void setModelEntityService(ModelEntityService service)
-
getModelEntityService
protected ModelEntityService getModelEntityService()
-
setItemTypeDescriptorService
public void setItemTypeDescriptorService(ItemTypeDescriptorService service)
-
getItemTypeDescriptorService
protected ItemTypeDescriptorService getItemTypeDescriptorService()
-
setServiceNameExtractor
public void setServiceNameExtractor(ServiceNameExtractor extractor)
-
getServiceNameExtractor
protected ServiceNameExtractor getServiceNameExtractor()
-
-