Class EntityTransferConfig<Entity>

java.lang.Object
de.xima.fc.project.ms.impl.impex.deprecated.EntityTransferConfig<Entity>
Type Parameters:
Entity - The type of entity.

@Deprecated public final class EntityTransferConfig<Entity> extends Object
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 Details

    • getDeserializationExtension

      public IEntityDeserializationExtension getDeserializationExtension()
      Deprecated.
      Gets the IEntityDeserializationExtension that 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

      public Class<Entity> getEntityClass()
      Deprecated.
      Gets the class of the entity this configuration is for.
      Returns:
      The entity class of this configuration.
    • getExportNameProvider

      public IEntityExportNameProvider<Entity> getExportNameProvider()
      Deprecated.
      Gets the IEntityExportNameProvider configured for this type of entity. Returns either a custom one configured via EntityTransferDetails.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

      public static <Entity> EntityTransferConfig<Entity> forEntity(Entity entity)
      Deprecated.
      Get a EntityTransferConfig for 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 EntityTransferConfig for the type of the given entity.
    • forEntityType

      public static <Entity> EntityTransferConfig<Entity> forEntityType(Class<Entity> entityType)
      Deprecated.
      Gets a new EntityTransferConfig for 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 EntityTransferConfig for the given type of entity.