Package de.xima.fc.importer.config
Class DataSourceImportConfig
java.lang.Object
de.xima.fc.importer.config.AEntityImportConfig<Datenquelle>
de.xima.fc.importer.config.DataSourceImportConfig
- All Implemented Interfaces:
IEntityImportConfig<Datenquelle>,Serializable,Comparable<IEntityImportConfig<?>>
- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH, Dresden - 22.05.2020
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.importer.config.AEntityImportConfig
context, entity, formcycleVersion, importJson, LOG, LOG_PREFIX, originalID, originalName, originalUUID, persisted, persistedName, unresolvedDependencies -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceImportConfig(IEntityContext ec, Mandant client, Datenquelle entity, Set<IEntityDependency> dependencies, String importJson) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinalize(IEntityContext ec, String fcVersion, String exportVersion) Finish the import.protected IGenericDao<Datenquelle>getDao()protected voidMethods inherited from class de.xima.fc.importer.config.AEntityImportConfig
findPersisted, getAllChildrenFlat, getChildren, getConflictResolveAction, getDependencyUuid, getEntity, getEntityClass, getEntityToOverride, getImportJson, getOriginalExportId, getOriginalID, getOriginalName, getOriginalUUID, getPersisted, getUnresolvedDependencies, getUuidEntityValue, isEntityExists, isImported, isUuidExisting, loadAlternative, postCreate, postUpdate, preCreate, preUpdate, resolveDependencies, setAlternativeId, setConflictResolveAction, setEntity, setEntityToOverride, setImported, setPersisted, stage, toString, updatePersisted, validateImportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.xima.fc.importer.interfaces.IEntityImportConfig
compareTo, getDependencies
-
Constructor Details
-
DataSourceImportConfig
-
DataSourceImportConfig
@Deprecated public DataSourceImportConfig(IEntityContext ec, Mandant client, Datenquelle entity, Set<IEntityDependency> dependencies, String importJson) Deprecated.
-
-
Method Details
-
finalize
public List<DependencyDescriptor> finalize(IEntityContext ec, String fcVersion, String exportVersion) throws Exception Description copied from interface:IEntityImportConfigFinish the import. Should be called after every import config has been staged for import and deprecated fields have been handled.- Specified by:
finalizein interfaceIEntityImportConfig<Datenquelle>- Overrides:
finalizein classAEntityImportConfig<Datenquelle>- Parameters:
ec-IEntityContextto be usedfcVersion- The current formcycle version where the entity is imported.exportVersion- The formcycle version that was used to create the export file with the entity.- Returns:
ListofDependencyDescriptors of missing dependencies- Throws:
Exception- When the entity import could not be finalized.
-
getDao
- Specified by:
getDaoin classAEntityImportConfig<Datenquelle>
-
makeEntityUnique
- Specified by:
makeEntityUniquein classAEntityImportConfig<Datenquelle>- Throws:
Exception
-