Package io.jmix.core
Interface EntityAttributeImportExtension
public interface EntityAttributeImportExtension
An extension point for the entity import mechanism. The mechanism is implemented in
the
EntityImportExport bean.
Such beans can be useful for defining specific logic for importing value of MetaProperty.
The supported MetaProperty is determined by the supports(MetaProperty) method.
-
Method Summary
Modifier and TypeMethodDescriptionvoidimportEntityAttribute(MetaProperty property, Object srcEntity, Object dstEntity) Imports the entity attribute.booleansupports(MetaProperty property) Checks whether the extension supports the given meta property
-
Method Details
-
supports
Checks whether the extension supports the given meta property- Parameters:
property- a meta property- Returns:
- true if the extension supports the given meta property, or false otherwise
-
importEntityAttribute
Imports the entity attribute.- Parameters:
property- a meta propertysrcEntity- entity that came to theEntityImportExportbeandstEntity- reloaded srcEntity or new entity instance if srcEntity doesn't exist in the database
-