Package net.datenwerke.eximport
Interface ImportService
- All Known Implementing Classes:
ImportServiceImpl
public interface ImportService
A service that allows to import previously exported objects.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureParents(ImportConfig config, String topMostParentId, AbstractNode<?> topMostParentTarget, Class<? extends Exporter> exporter) voidconfigureParents(ExportedItem item, ImportConfig config, String topMostParentId, AbstractNode<?> topMostParentTarget, Class<? extends Exporter> exporter) getEnclosedItemPropertyForId(ExportDataProvider dataProvider, String id) Returns theEnclosedItemPropertyfor the element identified by the given IDgetExportedItemById(ExportDataProvider dataProvider, String id) Returns the exported item identified by IDgetToBeConfigured(ImportConfig config) importData(ImportConfig config) Imports the data from the givenImportConfigvoidsetUseMergeImporter(boolean value) If set to true the Mergeimporter logic is used
-
Method Details
-
getToBeConfigured
- Parameters:
config- TheImportConfig- Returns:
- A
ListofExportedItems
-
importData
Imports the data from the givenImportConfig- Parameters:
config- TheImportConfig- Returns:
- The
ImportResult
-
setUseMergeImporter
void setUseMergeImporter(boolean value) If set to true the Mergeimporter logic is used- Parameters:
value-invalid reference
boolean
-
getExportedItemById
Returns the exported item identified by ID- Parameters:
id- The ID identifying the desired item- Returns:
- The
ExportedItem
-
getEnclosedItemPropertyForId
Returns theEnclosedItemPropertyfor the element identified by the given ID- Parameters:
id- The ID of the element- Returns:
- The
EnclosedItemProperty
-
configureParents
void configureParents(ImportConfig config, String topMostParentId, AbstractNode<?> topMostParentTarget, Class<? extends Exporter> exporter) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
configureParents
void configureParents(ExportedItem item, ImportConfig config, String topMostParentId, AbstractNode<?> topMostParentTarget, Class<? extends Exporter> exporter) throws ClassNotFoundException - Throws:
ClassNotFoundException
-