Class AbstractPropertyProcessor
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractPropertyProcessor
- All Implemented Interfaces:
PropertyProcessor
- Direct Known Subclasses:
AbstractCollectionPropertyProcessor,EntityPropertyProcessor,PrimitivePropertyProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemTypeDescriptorServiceprotected abstract booleanisApplicable(TypeAttributeDescriptor typeAttributeDescriptor) protected booleanisPropertySupported(TypeAttributeDescriptor descriptor) voidprocessEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest) Populates properties of the specifiedODataEntry.protected abstract voidprocessEntityInternal(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, String propertyName, Object value, ItemConversionRequest request) protected ObjectreadPropertyValue(TypeAttributeDescriptor descriptor, ItemConversionRequest conversionRequest) voidsetItemTypeDescriptorService(ItemTypeDescriptorService itemTypeDescriptorService) protected booleanshouldPropertyBeConverted(ItemConversionRequest request, String propertyName)
-
Constructor Details
-
AbstractPropertyProcessor
public AbstractPropertyProcessor()
-
-
Method Details
-
processEntity
public void processEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest) throws org.apache.olingo.odata2.api.edm.EdmException Description copied from interface:PropertyProcessorPopulates properties of the specifiedODataEntry.- Specified by:
processEntityin interfacePropertyProcessor- Parameters:
oDataEntry- an entry to be populated from anItemModelconversionRequest- a request carrying all context information needed for correct population of the entry by a specific implementation of the property populator.- Throws:
org.apache.olingo.odata2.api.edm.EdmException- when unexpected problems occur while accessing the EDM info.
-
readPropertyValue
protected Object readPropertyValue(TypeAttributeDescriptor descriptor, ItemConversionRequest conversionRequest) -
shouldPropertyBeConverted
-
isPropertySupported
-
isApplicable
-
getItemTypeDescriptorService
-
setItemTypeDescriptorService
-
processEntityInternal
protected abstract void processEntityInternal(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, String propertyName, Object value, ItemConversionRequest request) throws org.apache.olingo.odata2.api.edm.EdmException - Throws:
org.apache.olingo.odata2.api.edm.EdmException
-