Class FormVersionImportConfig
java.lang.Object
de.xima.fc.importer.config.AEntityImportConfig<FormVersion>
de.xima.fc.importer.config.FormVersionImportConfig
- All Implemented Interfaces:
IEntityImportConfig<FormVersion>, Serializable, Comparable<IEntityImportConfig<?>>
- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH, Dresden - 22.05.2020
- See Also:
-
Field Summary
Fields inherited from class AEntityImportConfig
alternative, conflictResolveAction, context, entity, formcycleVersion, importJson, LOG, LOG_PREFIX, originalID, originalName, originalUUID, persisted, persistedName, unresolvedDependencies -
Method Summary
Modifier and TypeMethodDescriptionfinalize(IEntityContext ec, String fcVersion, String exportVersion) Finish the import.protected IGenericDao<FormVersion> getDao()The name of the CSS template used as the theme for this form version.protected voidprotected voidprotected voidMethods inherited from class AEntityImportConfig
findPersisted, getAllChildrenFlat, getChildren, getConflictResolveAction, getDependencyUuid, getEntity, getEntityClass, getEntityToOverride, getImportJson, getOriginal, getOriginalExportId, getOriginalID, getOriginalName, getOriginalUUID, getPersisted, getUnresolvedDependencies, getUuidEntityValue, isEntityExists, isImported, isUuidExisting, loadAlternative, postCreate, postUpdate, resolveDependencies, setAlternative, setConflictResolveAction, setEntity, setEntityToOverride, setImported, setOriginal, setPersisted, stage, toString, updatePersisted, validateImportMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IEntityImportConfig
compareTo, getDependencies, isRelevantForImport, setAlternativeId
-
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<FormVersion>- Overrides:
finalizein classAEntityImportConfig<FormVersion>- 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<FormVersion>
-
makeEntityUnique
- Specified by:
makeEntityUniquein classAEntityImportConfig<FormVersion>- Throws:
Exception
-
preCreate
- Overrides:
preCreatein classAEntityImportConfig<FormVersion>
-
preUpdate
- Overrides:
preUpdatein classAEntityImportConfig<FormVersion>
-
getLegacyThemeName
The name of the CSS template used as the theme for this form version. Null unless a legacy export file is being imported.- Returns:
- The name of the legacy
text templateof type CSS that was configured as the form theme.
-