Package de.xima.fc.importer.config
Class ProjectImportConfig
java.lang.Object
de.xima.fc.importer.config.AEntityImportConfig<Projekt>
de.xima.fc.importer.config.ProjectImportConfig
- All Implemented Interfaces:
IEntityImportConfig<Projekt>
,Serializable
,Comparable<IEntityImportConfig<?>>
Import config for
Projekt
s- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH
- 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
ConstructorsConstructorDescriptionProjectImportConfig
(IEntityContext ec, Mandant client, Projekt entity, Projekt override, Set<IEntityDependency> dependencies, String importJson, List<DeserializedEntity> deserializedEntities) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinalize
(IEntityContext ec, String fcVersion, String exportVersion) Finish the import.protected IGenericDao<Projekt>
getDao()
protected void
protected void
protected void
protected void
protected void
protected void
withImportAsTemplate
(boolean importAsTemplate) withOverrideActiveVersions
(IEntityContext ec, boolean overrideActiveVersions) Methods inherited from class de.xima.fc.importer.config.AEntityImportConfig
findPersisted, getAllChildrenFlat, getConflictResolveAction, getDependencyUuid, getEntity, getEntityClass, getEntityToOverride, getImportJson, getOriginalExportId, getOriginalID, getOriginalName, getOriginalUUID, getPersisted, getUnresolvedDependencies, getUuidEntityValue, isEntityExists, isImported, isUuidExisting, loadAlternative, resolveDependencies, setAlternativeId, setConflictResolveAction, setEntity, setEntityToOverride, setImported, setPersisted, stage, toString, updatePersisted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.xima.fc.importer.interfaces.IEntityImportConfig
compareTo, getDependencies
-
Constructor Details
-
ProjectImportConfig
@Deprecated public ProjectImportConfig(IEntityContext ec, Mandant client, Projekt entity, Projekt override, Set<IEntityDependency> dependencies, String importJson, List<DeserializedEntity> deserializedEntities) Deprecated.
-
-
Method Details
-
getActiveVersion
-
getActiveWorkflowVersion
-
getStates
-
getStateMapping
-
getChildren
- Specified by:
getChildren
in interfaceIEntityImportConfig<Projekt>
- Overrides:
getChildren
in classAEntityImportConfig<Projekt>
- Returns:
- all child importConfigs
-
withTitle
-
withAlias
-
withScope
-
withImportAsTemplate
-
withOverrideActiveVersions
public ProjectImportConfig withOverrideActiveVersions(IEntityContext ec, boolean overrideActiveVersions) -
finalize
public List<DependencyDescriptor> finalize(IEntityContext ec, String fcVersion, String exportVersion) throws Exception Description copied from interface:IEntityImportConfig
Finish the import. Should be called after every import config has been staged for import and deprecated fields have been handled.- Specified by:
finalize
in interfaceIEntityImportConfig<Projekt>
- Overrides:
finalize
in classAEntityImportConfig<Projekt>
- Parameters:
ec
-IEntityContext
to 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:
List
ofDependencyDescriptor
s of missing dependencies- Throws:
Exception
- When the entity import could not be finalized.
-
getDao
- Specified by:
getDao
in classAEntityImportConfig<Projekt>
-
makeEntityUnique
- Specified by:
makeEntityUnique
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
preCreate
- Overrides:
preCreate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
postCreate
- Overrides:
postCreate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
preUpdate
- Overrides:
preUpdate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
postUpdate
- Overrides:
postUpdate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
validateImport
- Overrides:
validateImport
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-