public interface ImportOperation
file system.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ImportOperation.DatabaseLayerMapper
Mapper providing layers to be used for
Schema instances. |
static class |
ImportOperation.MapDatabaseLayerMapper
Default implementation of
ImportOperation.DatabaseLayerMapper based on a map. |
static interface |
ImportOperation.Problem
|
static interface |
ImportOperation.Result
Container providing access to the result of the import operation.
|
| Modifier and Type | Field and Description |
|---|---|
static ImportOperation.DatabaseLayerMapper |
IDENTITY_LAYER_MAPPING
Identity layer mapping, mapping source layer to target layer with same name.
|
static OperationType<ImportOperation> |
TYPE
Operation providing means to import store elements from files in a
file system. |
| Modifier and Type | Method and Description |
|---|---|
ImportOperation.Result |
perform(FileSystem<?> fileSystem)
Perform the import on the given
file system. |
void |
setCreateEntities(boolean enable)
Defines to create entities when importing.
|
void |
setDatabaseLayerMapper(ImportOperation.DatabaseLayerMapper mapper)
Sets a mapper providing information to map imported schemes to different layers.
|
void |
setImportFilter(Filter<ImportElementInfo> filter)
Sets a filter being used to decide upon elements to be imported.
|
void |
setRevisionComment(String comment)
Sets a comment for revisions created
during the update. |
void |
setStepsListener(StepsListener listener)
Sets the listener that gets informed on steps being started.
|
static final OperationType<ImportOperation> TYPE
file system.static final ImportOperation.DatabaseLayerMapper IDENTITY_LAYER_MAPPING
setDatabaseLayerMapper(DatabaseLayerMapper)void setCreateEntities(boolean enable)
enable - true, to create entities.void setDatabaseLayerMapper(@NotNull ImportOperation.DatabaseLayerMapper mapper)
mapper - The mapper providing the relevant information.IDENTITY_LAYER_MAPPING,
ImportOperation.MapDatabaseLayerMapper.from(Map)void setImportFilter(@NotNull Filter<ImportElementInfo> filter)
perform(FileSystem). Only elements passing the filter will be added for
import. Children of passing elements will always be imported as well.filter - The filter to be passed.void setStepsListener(@NotNull StepsListener listener)
listener - The listener to be set.void setRevisionComment(@NotNull String comment)
during the update.comment - Revision comment, should not contain line breaks.ImportOperation.Result perform(@NotNull FileSystem<?> fileSystem) throws IOException, LockException, ElementDeletedException, ElementMovedException
file system. Exported elements from the file system will be imported as new elements.
Exported elements corresponding to elements, which already exist in the project, will be updated.fileSystem - The file system to export to.IOExceptionLockExceptionElementDeletedExceptionElementMovedExceptionCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408