public interface IEntityImportConfig<T extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Comparable<IEntityImportConfig<?>>
T getEntity()
T that should be importedvoid setEntity(T entity)
entity - T that should be importedT getPersisted()
T persisted entity that may be overriddenvoid setPersisted(T entity)
Class<?> getEntityClass()
Set<IEntityDependency> getDependencies()
List of all the dependencies to this entityEEntityConflictResolveAction getConflictResolveAction()
EEntityConflictResolveAction specifying what to do if the entity already existsvoid setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)
conflictResolveAction - EEntityConflictResolveAction specifying what to do if the entity already
existsboolean isEntityExists()
true if the given entity already exists (based on UUID and its context)boolean isImported()
void setImported(boolean imported)
true if the entity has been importedString getImportJson()
Long getOriginalID()
UUID getOriginalUUID()
null if the entity is no IUUIDEntityString getOriginalName()
List<IEntityImportConfig<?>> getChildren()
List<IEntityImportConfig<?>> getAllChildrenFlat()
void updatePersisted(IEntityContext ec)
ec - IEntityContext to be used for updating the persisted entityvoid setAlternativeId(Long alternativeId)
alternativeId - of an existing entity of type T that should be used insteadT loadAlternative(IEntityContext ec)
ec - IEntityContext to useT entity that should be used insteadvoid stage(IEntityContext ec) throws Exception
ec - IEntityContext to be usedExceptionList<DependencyDescriptor> finalize(IEntityContext ec, String fcVersion, String exportVersion) throws Exception
ec - IEntityContext to be usedList of DependencyDescriptors of missing dependenciesExceptiondefault int compareTo(IEntityImportConfig<?> o)
compareTo in interface Comparable<IEntityImportConfig<?>>@Deprecated void resolveDependencies(IEntityContext ec)
ec - IEntityContext to be used@Deprecated de.xima.cmn.dao.interfaces.IEntity<Long> getEntityToOverride()
IEntity that should be overridden instead of the persisted@Deprecated void setEntityToOverride(de.xima.cmn.dao.interfaces.IEntity<Long> entityToOverride)
entityToOverride - IEntity that should be overridden instead of the persistedCopyright © 2021 XIMA MEDIA GmbH. All rights reserved.