Class LocalizedAttributesPropertyProcessor
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractPropertyProcessor
de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractCollectionPropertyProcessor
de.hybris.platform.odata2services.odata.persistence.populator.processor.LocalizedAttributesPropertyProcessor
- All Implemented Interfaces:
PropertyProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanHandleEntityValue(Object value) protected List<org.apache.olingo.odata2.api.ep.entry.ODataEntry>deriveDataFeedEntries(ItemConversionRequest request, String localizedProperty, Object value) Derives the Entries for the localizedAttributes property.protected booleanisApplicable(TypeAttributeDescriptor typeAttributeDescriptor) voidprocessEntity(org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, ItemConversionRequest conversionRequest) Populates properties of the specifiedODataEntry.voidprotected booleanshouldPropertyBeConverted(ItemConversionRequest conversionRequest, String propertyName) Methods inherited from class de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractCollectionPropertyProcessor
processEntityInternalMethods inherited from class de.hybris.platform.odata2services.odata.persistence.populator.processor.AbstractPropertyProcessor
getItemTypeDescriptorService, isPropertySupported, readPropertyValue, setItemTypeDescriptorService
-
Constructor Details
-
LocalizedAttributesPropertyProcessor
public LocalizedAttributesPropertyProcessor()
-
-
Method Details
-
shouldPropertyBeConverted
protected boolean shouldPropertyBeConverted(ItemConversionRequest conversionRequest, String propertyName) - Overrides:
shouldPropertyBeConvertedin classAbstractPropertyProcessor
-
isApplicable
- Specified by:
isApplicablein classAbstractPropertyProcessor
-
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- Overrides:
processEntityin classAbstractPropertyProcessor- 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.
-
canHandleEntityValue
- Overrides:
canHandleEntityValuein classAbstractCollectionPropertyProcessor
-
deriveDataFeedEntries
protected List<org.apache.olingo.odata2.api.ep.entry.ODataEntry> deriveDataFeedEntries(ItemConversionRequest request, String localizedProperty, Object value) Derives the Entries for the localizedAttributes property.- Specified by:
deriveDataFeedEntriesin classAbstractCollectionPropertyProcessor- Parameters:
request- - item conversion requestlocalizedProperty- - should be equivalent to the LOCALIZED_ATTRIBUTE_NAME constantvalue- - all localizable & primitiveTypeAttributeDescriptors that belong to the parent item derived from the entityType in the ItemConversionRequest- Returns:
- a list of translations for the localizedSimpleAttributeDescriptors
-
setLocalizationService
-