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 classAbstractPropertyProcessor.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 AttributeDescriptorModelgetAttributeDescriptor(ItemModel item, java.lang.String propertyName, StorageRequest request)protected IntegrationObjectServicegetIntegrationObjectService()protected ModelServicegetModelService()TypeServicegetTypeService()protected abstract booleanisApplicable(TypeAttributeDescriptor typeAttributeDescriptor)protected booleanisItemPropertySettable(ItemModel item, java.lang.String propertyName, StorageRequest request)protected booleanisPropertySupported(AbstractPropertyProcessor.PropertyMetadata propertyMetadata)voidprocessEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest)protected abstract voidprocessEntityInternal(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, java.lang.String propertyName, java.lang.Object value, ItemConversionRequest request)voidprocessItem(ItemModel item, StorageRequest request)protected abstract voidprocessItemInternal(ItemModel item, java.lang.String entryPropertyName, java.lang.Object value, StorageRequest request)protected java.lang.ObjectreadPropertyValue(ItemConversionRequest request, java.lang.String propertyName)voidsetIntegrationObjectService(IntegrationObjectService integrationObjectService)voidsetModelService(ModelService modelService)voidsetTypeService(TypeService typeService)protected abstract booleanshouldPropertyBeConverted(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:
processItemin 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:
processEntityin 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)
-
-