Package io.jmix.core
Interface EntityAttributeImportExtension
- All Known Implementing Classes:
FilterConditionAttributeImportExtension
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 TypeMethodDescriptionvoid
importEntityAttribute
(MetaProperty property, Object srcEntity, Object dstEntity) Imports the entity attribute.boolean
supports
(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 theEntityImportExport
beandstEntity
- reloaded srcEntity or new entity instance if srcEntity doesn't exist in the database
-