Package de.xima.fc.importer.dependency
Class EntityDependencyUpdater
java.lang.Object
de.xima.fc.importer.dependency.EntityDependencyUpdater
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
updateDependencies
(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID oldUuid) Deprecated.static final void
updateDependencies
(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId) Deprecated.static final void
updateDependencies
(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId, com.vdurmont.semver4j.Semver fcVersion) Updates the references to an entitystatic final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
voidupdateDependencies
(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig) Deprecated.static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
voidupdateDependencies
(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig, com.vdurmont.semver4j.Semver fcVersion) Updates the references to an entitystatic final void
updateImportConfigFromDb
(IEntityContext ec, IEntityImportConfig<?> config) static final void
updateImportConfigs
(IEntityContext ec, List<IEntityImportConfig<?>> configsToUpdate, de.xima.cmn.dao.interfaces.IEntity<Long> entityToAdd) Adds the given entity to the appropriate entity fields of the import configs
-
Method Details
-
updateImportConfigs
public static final void updateImportConfigs(IEntityContext ec, List<IEntityImportConfig<?>> configsToUpdate, de.xima.cmn.dao.interfaces.IEntity<Long> entityToAdd) throws Exception Adds the given entity to the appropriate entity fields of the import configs -
updateImportConfigFromDb
public static final void updateImportConfigFromDb(IEntityContext ec, IEntityImportConfig<?> config) throws Exception - Throws:
Exception
-
updateDependencies
public static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> void updateDependencies(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig, com.vdurmont.semver4j.Semver fcVersion) throws Exception Updates the references to an entity- Type Parameters:
T
- Type of the entity.- Parameters:
importConfigs
-IEntityImportConfig
s for which the dependencies should be updatedupdateConfig
-IEntityImportConfig
whose references should be updatedfcVersion
- Formcycle version that was used to create the export.- Throws:
Exception
- on errors while updating the dependencies
-
updateDependencies
public static final void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId, com.vdurmont.semver4j.Semver fcVersion) throws Exception Updates the references to an entity- Parameters:
importConfigs
-IEntityImportConfig
s for which the dependencies should be updatednewEntity
-IEntity
new entity that should be referencedoriginalUuid
-UUID
UUID of the dependency that should be updatedoriginalName
-String
Name of the dependency that should be updatedoriginalId
-Long
ID of the dependency that should be updatedfcVersion
- Formcycle version that was used to create the export.- Throws:
Exception
- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static final void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID oldUuid) throws Exception Deprecated.Updates the references to an entity- Parameters:
importConfigs
-IEntityImportConfig
s for which the dependencies should be updatednewEntity
-IEntity
new entity that should be referencedoldUuid
-UUID
UUID of the dependency that should be updated- Throws:
Exception
- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> void updateDependencies(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig) throws Exception Deprecated.Updates the references to an entitymver- Type Parameters:
T
- Type of the entity.- Parameters:
importConfigs
-IEntityImportConfig
s for which the dependencies should be updatedupdateConfig
-IEntityImportConfig
whose references should be updated- Throws:
Exception
- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static final void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId) throws Exception Deprecated.Updates the references to an entity- Parameters:
importConfigs
-IEntityImportConfig
s for which the dependencies should be updatednewEntity
-IEntity
new entity that should be referencedoriginalUuid
-UUID
UUID of the dependency that should be updatedoriginalName
-String
Name of the dependency that should be updatedoriginalId
-Long
ID of the dependency that should be updated- Throws:
Exception
- on errors while updating the dependencies
-
updateDependencies(List, IEntity, UUID, String, Long, Semver)