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<?>>
public class ProjectImportConfig extends AEntityImportConfig<Projekt>
Import config forProjekt
s- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.importer.config.AEntityImportConfig
context, entity, importJson, LOG, LOG_PREFIX, originalID, originalName, originalUUID, persisted, persistedName, unresolvedDependencies
-
-
Constructor Summary
Constructors Constructor Description ProjectImportConfig(IEntityContext ec, Mandant client, Projekt entity, Projekt override, Set<IEntityDependency> dependencies, String importJson, List<DeserializedEntity> deserializedEntities)
Deprecated.
-
Method Summary
-
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 Detail
-
ProjectImportConfig
@Deprecated public ProjectImportConfig(IEntityContext ec, Mandant client, Projekt entity, Projekt override, Set<IEntityDependency> dependencies, String importJson, List<DeserializedEntity> deserializedEntities)
Deprecated.
-
-
Method Detail
-
getActiveVersion
public FormVersionImportConfig getActiveVersion()
-
getActiveWorkflowVersion
public WorkflowVersion getActiveWorkflowVersion()
-
getStates
public List<StateImportConfig> getStates()
-
getStateMapping
public List<StateMapperModel> getStateMapping()
-
getChildren
public List<IEntityImportConfig<?>> getChildren()
- Specified by:
getChildren
in interfaceIEntityImportConfig<Projekt>
- Overrides:
getChildren
in classAEntityImportConfig<Projekt>
- Returns:
- all child importConfigs
-
withTitle
public ProjectImportConfig withTitle(String title)
-
withAlias
public ProjectImportConfig withAlias(String alias)
-
withScope
public ProjectImportConfig withScope(String scope)
-
withImportAsTemplate
public ProjectImportConfig withImportAsTemplate(boolean importAsTemplate)
-
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 deprecaetd fields have been handled.- Specified by:
finalize
in interfaceIEntityImportConfig<Projekt>
- Overrides:
finalize
in classAEntityImportConfig<Projekt>
- Parameters:
ec
-IEntityContext
to be used- Returns:
List
ofDependencyDescriptor
s of missing dependencies- Throws:
Exception
-
getDao
protected IGenericDao<Projekt> getDao()
- Specified by:
getDao
in classAEntityImportConfig<Projekt>
-
makeEntityUnique
protected void makeEntityUnique(IEntityContext ec) throws Exception
- Specified by:
makeEntityUnique
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
preCreate
protected void preCreate(IEntityContext ec) throws Exception
- Overrides:
preCreate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
postCreate
protected void postCreate(IEntityContext ec) throws Exception
- Overrides:
postCreate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
preUpdate
protected void preUpdate(IEntityContext ec) throws Exception
- Overrides:
preUpdate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
postUpdate
protected void postUpdate(IEntityContext ec) throws Exception
- Overrides:
postUpdate
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
validateImport
protected void validateImport(IEntityContext ec) throws Exception
- Overrides:
validateImport
in classAEntityImportConfig<Projekt>
- Throws:
Exception
-
-