public class ImportServiceImpl extends java.lang.Object implements ImportService
Constructor and Description |
---|
ImportServiceImpl(ExportDataAnalyzerService dataAnalizer,
HookHandlerService hookHandler,
ImportSupervisorFactory importSupervisorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
configureParents(ExportedItem item,
ImportConfig config,
java.lang.String topMostParentId,
AbstractNode<?> topMostParentTarget,
java.lang.Class<? extends Exporter> exporter) |
void |
configureParents(ImportConfig config,
java.lang.String topMostParentId,
AbstractNode<?> topMostParentTarget,
java.lang.Class<? extends Exporter> exporter) |
EnclosedItemProperty |
getEnclosedItemPropertyForId(ExportDataProvider dataProvider,
java.lang.String id)
Returns the
EnclosedItemProperty for the element identified by the
given ID |
ExportedItem |
getExportedItemById(ExportDataProvider dataProvider,
java.lang.String id)
Returns the exported item identified by ID
|
java.util.List<ExportedItem> |
getToBeConfigured(ImportConfig config)
|
ImportResult |
importData(ImportConfig config)
Imports the data from the given
ImportConfig |
public ImportServiceImpl(ExportDataAnalyzerService dataAnalizer, HookHandlerService hookHandler, ImportSupervisorFactory importSupervisorFactory)
public ImportResult importData(ImportConfig config)
ImportService
ImportConfig
importData
in interface ImportService
config
- The ImportConfig
ImportResult
public java.util.List<ExportedItem> getToBeConfigured(ImportConfig config)
ImportService
getToBeConfigured
in interface ImportService
config
- The ImportConfig
List
of ExportedItem
spublic ExportedItem getExportedItemById(ExportDataProvider dataProvider, java.lang.String id)
ImportService
getExportedItemById
in interface ImportService
id
- The ID identifying the desired itemExportedItem
public EnclosedItemProperty getEnclosedItemPropertyForId(ExportDataProvider dataProvider, java.lang.String id)
ImportService
EnclosedItemProperty
for the element identified by the
given IDgetEnclosedItemPropertyForId
in interface ImportService
id
- The ID of the elementEnclosedItemProperty
public void configureParents(ImportConfig config, java.lang.String topMostParentId, AbstractNode<?> topMostParentTarget, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
configureParents
in interface ImportService
java.lang.ClassNotFoundException
public void configureParents(ExportedItem item, ImportConfig config, java.lang.String topMostParentId, AbstractNode<?> topMostParentTarget, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
configureParents
in interface ImportService
java.lang.ClassNotFoundException