Class AbstractPropertyProcessor
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractPropertyProcessor
-
- All Implemented Interfaces:
PropertyProcessor
- Direct Known Subclasses:
AbstractCollectionPropertyProcessor
,EntityPropertyProcessor
,PrimitivePropertyProcessor
public abstract class AbstractPropertyProcessor extends java.lang.Object implements PropertyProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractPropertyProcessor.PropertyMetadata
-
Constructor Summary
Constructors Constructor Description AbstractPropertyProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<TypeAttributeDescriptor>
findTypeDescriptorAttributeForItem(IntegrationObjectItemModel integrationObjectItem, java.lang.String integrationItemAttributeName)
protected AttributeDescriptorModel
getAttributeDescriptor(ItemModel item, java.lang.String propertyName, StorageRequest request)
protected IntegrationObjectService
getIntegrationObjectService()
protected ModelService
getModelService()
TypeService
getTypeService()
protected abstract boolean
isApplicable(TypeAttributeDescriptor typeAttributeDescriptor)
protected boolean
isItemPropertySettable(ItemModel item, java.lang.String propertyName, StorageRequest request)
protected boolean
isPropertySupported(AbstractPropertyProcessor.PropertyMetadata propertyMetadata)
void
processEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest)
protected abstract void
processEntityInternal(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, java.lang.String propertyName, java.lang.Object value, ItemConversionRequest request)
void
processItem(ItemModel item, StorageRequest request)
protected abstract void
processItemInternal(ItemModel item, java.lang.String entryPropertyName, java.lang.Object value, StorageRequest request)
protected java.lang.Object
readPropertyValue(ItemConversionRequest request, java.lang.String propertyName)
void
setIntegrationObjectService(IntegrationObjectService integrationObjectService)
void
setModelService(ModelService modelService)
void
setTypeService(TypeService typeService)
protected abstract boolean
shouldPropertyBeConverted(ItemConversionRequest conversionRequest, java.lang.String propertyName)
-
-
-
Method Detail
-
processItem
public void processItem(ItemModel item, StorageRequest request) throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
processItem
in interfacePropertyProcessor
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
findTypeDescriptorAttributeForItem
protected java.util.Optional<TypeAttributeDescriptor> findTypeDescriptorAttributeForItem(IntegrationObjectItemModel integrationObjectItem, java.lang.String integrationItemAttributeName)
-
processEntity
public void processEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest) throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
processEntity
in interfacePropertyProcessor
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
readPropertyValue
protected java.lang.Object readPropertyValue(ItemConversionRequest request, java.lang.String propertyName) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
shouldPropertyBeConverted
protected abstract boolean shouldPropertyBeConverted(ItemConversionRequest conversionRequest, java.lang.String propertyName) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
isItemPropertySettable
protected boolean isItemPropertySettable(ItemModel item, java.lang.String propertyName, StorageRequest request) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getAttributeDescriptor
protected AttributeDescriptorModel getAttributeDescriptor(ItemModel item, java.lang.String propertyName, StorageRequest request) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
isPropertySupported
protected boolean isPropertySupported(AbstractPropertyProcessor.PropertyMetadata propertyMetadata)
-
isApplicable
protected abstract boolean isApplicable(TypeAttributeDescriptor typeAttributeDescriptor)
-
processItemInternal
protected abstract void processItemInternal(ItemModel item, java.lang.String entryPropertyName, java.lang.Object value, StorageRequest request) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
processEntityInternal
protected abstract void processEntityInternal(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, java.lang.String propertyName, java.lang.Object value, ItemConversionRequest request) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getIntegrationObjectService
protected IntegrationObjectService getIntegrationObjectService()
-
setIntegrationObjectService
public void setIntegrationObjectService(IntegrationObjectService integrationObjectService)
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-