Package de.xima.fc.importer.config
Class TemplateImportConfig
- java.lang.Object
-
- de.xima.fc.importer.config.AEntityImportConfig<Textbaustein>
-
- de.xima.fc.importer.config.TemplateImportConfig
-
- All Implemented Interfaces:
IEntityImportConfig<Textbaustein>,Serializable,Comparable<IEntityImportConfig<?>>
public class TemplateImportConfig extends AEntityImportConfig<Textbaustein>
- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH, Dresden - 22.05.2020
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.importer.config.AEntityImportConfig
alternative, conflictResolveAction, context, entity, formcycleVersion, importJson, LOG, LOG_PREFIX, originalID, originalName, originalUUID, persisted, persistedName, unresolvedDependencies
-
-
Constructor Summary
Constructors Constructor Description TemplateImportConfig(IEntityImportConfigData<Textbaustein> data)TemplateImportConfig(IEntityContext ec, Mandant client, Textbaustein entity, Set<IEntityDependency> dependencies, String importJson)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TextbausteinfindPersisted(IEntityContext ec)protected IGenericDao<Textbaustein>getDao()Returns the data access object of the entity to be imported.protected voidmakeEntityUnique(IEntityContext ec)Makes the entity to be imported unique with respect to database constraints.protected voidpreCreate(IEntityContext ec)Is called before the entity to be imported is created.protected voidpreUpdate(IEntityContext ec)Is called before the entity to be imported is overridden.TemplateImportConfigwithCategory(ETextbausteinKategorie category)TemplateImportConfigwithDescription(String desc)TemplateImportConfigwithIsSystem(boolean isSystem)TemplateImportConfigwithName(String name)TemplateImportConfigwithTextValue(String textValue)-
Methods inherited from class de.xima.fc.importer.config.AEntityImportConfig
finalize, 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, validateImport
-
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, ignore, isRelevantForImport, setAlternativeId, shouldAlsoBeIgnored
-
-
-
-
Constructor Detail
-
TemplateImportConfig
public TemplateImportConfig(IEntityImportConfigData<Textbaustein> data)
-
TemplateImportConfig
@Deprecated public TemplateImportConfig(IEntityContext ec, Mandant client, Textbaustein entity, Set<IEntityDependency> dependencies, String importJson)
Deprecated.
-
-
Method Detail
-
withName
public TemplateImportConfig withName(String name)
-
withDescription
public TemplateImportConfig withDescription(String desc)
-
withTextValue
public TemplateImportConfig withTextValue(String textValue)
-
withIsSystem
public TemplateImportConfig withIsSystem(boolean isSystem)
-
withCategory
public TemplateImportConfig withCategory(ETextbausteinKategorie category)
-
findPersisted
protected Textbaustein findPersisted(IEntityContext ec)
- Overrides:
findPersistedin classAEntityImportConfig<Textbaustein>
-
getDao
protected IGenericDao<Textbaustein> getDao()
Description copied from class:AEntityImportConfigReturns the data access object of the entity to be imported.- Specified by:
getDaoin classAEntityImportConfig<Textbaustein>- Returns:
- data access object
-
makeEntityUnique
protected void makeEntityUnique(IEntityContext ec)
Description copied from class:AEntityImportConfigMakes the entity to be imported unique with respect to database constraints. If the name is unique, this method should make the entity's name unique.- Specified by:
makeEntityUniquein classAEntityImportConfig<Textbaustein>- Parameters:
ec- entity context
-
preCreate
protected void preCreate(IEntityContext ec)
Description copied from class:AEntityImportConfigIs called before the entity to be imported is created.- Overrides:
preCreatein classAEntityImportConfig<Textbaustein>- Parameters:
ec- entity context
-
preUpdate
protected void preUpdate(IEntityContext ec) throws Exception
Description copied from class:AEntityImportConfigIs called before the entity to be imported is overridden.- Overrides:
preUpdatein classAEntityImportConfig<Textbaustein>- Parameters:
ec- entity context- Throws:
Exception- if an error occurs
-
-