Package de.xima.fc.importer.dependency
Class EntityDependencyUpdater
- java.lang.Object
-
- de.xima.fc.importer.dependency.EntityDependencyUpdater
-
public class EntityDependencyUpdater extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidupdateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID oldUuid)Deprecated.static voidupdateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId)static <T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
voidupdateDependencies(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig)static <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 voidupdateDependencies(List<IEntityImportConfig<?>> importConfigs, Object newAlternative, UUID originalUuid, String originalName, Long originalId, com.vdurmont.semver4j.Semver fcVersion)static voidupdateDependencies(List<IEntityImportConfig<?>> importConfigs, Object newAlternative, UUID originalUuid, String originalName, Long originalId, Object original, com.vdurmont.semver4j.Semver fcVersion)Updates the references to an entitystatic voidupdateImportConfigFromDb(IEntityContext ec, IEntityImportConfig<?> config)static voidupdateImportConfigs(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 Detail
-
updateImportConfigs
public static 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 <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-IEntityImportConfigs for which the dependencies should be updatedupdateConfig-IEntityImportConfigwhose references should be updatedfcVersion- Formcycle version that was used to create the export.- Throws:
Exception- on errors while updating the dependencies
-
updateDependencies
public static void updateDependencies(List<IEntityImportConfig<?>> importConfigs, Object newAlternative, UUID originalUuid, String originalName, Long originalId, Object original, com.vdurmont.semver4j.Semver fcVersion)
Updates the references to an entity- Parameters:
importConfigs- Allimport configsfor which the dependencies should be updated.newAlternative- New alternative that should be referencedoriginalUuid-UUIDof the dependency that should be updatedoriginalName-Nameof the dependency that should be updatedoriginalId-IDof the dependency that should be updatedoriginal- Reference to the original object that was replaced by the new alternativefcVersion- Formcycle version that was used to create the export.
-
updateDependencies
@Deprecated public static 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-IEntityImportConfigs for which the dependencies should be updatednewEntity-IEntitynew entity that should be referencedoldUuid-UUIDUUID of the dependency that should be updated- Throws:
Exception- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> void updateDependencies(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig) throws Exception
Updates the references to an entitymver- Type Parameters:
T- Type of the entity.- Parameters:
importConfigs-IEntityImportConfigs for which the dependencies should be updatedupdateConfig-IEntityImportConfigwhose references should be updated- Throws:
Exception- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId) throws Exception
Updates the references to an entity- Parameters:
importConfigs-IEntityImportConfigs for which the dependencies should be updatednewEntity-IEntitynew entity that should be referencedoriginalUuid-UUIDUUID of the dependency that should be updatedoriginalName-StringName of the dependency that should be updatedoriginalId-LongID of the dependency that should be updated- Throws:
Exception- on errors while updating the dependencies
-
updateDependencies
@Deprecated public static void updateDependencies(List<IEntityImportConfig<?>> importConfigs, Object newAlternative, UUID originalUuid, String originalName, Long originalId, com.vdurmont.semver4j.Semver fcVersion) throws Exception
Updates the references to an entity- Parameters:
importConfigs- Allimport configsfor which the dependencies should be updated.newAlternative- New alternative that should be referencedoriginalUuid-UUIDof the dependency that should be updatedoriginalName-Nameof the dependency that should be updatedoriginalId-IDof the dependency that should be updatedfcVersion- Formcycle version that was used to create the export.- Throws:
Exception- on errors while updating the dependencies
-
-