Class EntityTransferConfig<Entity>
java.lang.Object
de.xima.fc.project.ms.impl.impex.deprecated.EntityTransferConfig<Entity>
- Type Parameters:
Entity- The type of entity.
Deprecated.
In the future each domain module will provide its own way of importing and exporting entities.
Holds the custom import / export configuration for a specific entity class, see
EntityTransferDetails. Use
forEntity or forEntityType to get a configuration for a
specific entity or entity type.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <Entity> EntityTransferConfig<Entity> forEntity(Entity entity) Deprecated.Get aEntityTransferConfigfor the type of the given entity.static <Entity> EntityTransferConfig<Entity> forEntityType(Class<Entity> entityType) Deprecated.Gets a newEntityTransferConfigfor the given type of entity.Deprecated.Gets theIEntityDeserializationExtensionthat was configured for this type of entity.Deprecated.Gets the class of the entity this configuration is for.Deprecated.Gets theIEntityExportNameProviderconfigured for this type of entity.
-
Method Details
-
getDeserializationExtension
Deprecated.Gets theIEntityDeserializationExtensionthat was configured for this type of entity. Returns a no-op implementation if no extension was configured.- Returns:
- The deserialization extension configured for this type of entity, never null.
-
getEntityClass
-
getExportNameProvider
Deprecated.Gets theIEntityExportNameProviderconfigured for this type of entity. Returns either a custom one configured viaEntityTransferDetails.exportNameProvider()or a default implementation based on the entity type.- Returns:
- The configured entity export name provider, never null.
- Throws:
IllegalStateException- If no export name provider is available for this entity type.
-
forEntity
Deprecated.Get aEntityTransferConfigfor the type of the given entity.- Type Parameters:
Entity- The type of entity.- Parameters:
entity- The entity to create a configuration for.- Returns:
- A new
EntityTransferConfigfor the type of the given entity.
-
forEntityType
Deprecated.Gets a newEntityTransferConfigfor the given type of entity.- Type Parameters:
Entity- The type of entity.- Parameters:
entityType- The type of entity to create a configuration for.- Returns:
- A new
EntityTransferConfigfor the given type of entity.
-