public interface LayerMapper extends Serializable
layers
to be used for transported Schema
instances.content transport
and
external sync
.ImportOperation.setLayerMapper(LayerMapper)
,
FeatureInstallAgent.installFeature(FeatureFile, LayerMapper)
Modifier and Type | Interface and Description |
---|---|
static class |
LayerMapper.LayerNameBasedLayerMapper
Default implementation based on a given map mapping from source layer name to target layer name.
|
static interface |
LayerMapper.MappingContext
Mapping context providing access to the transported
schema and the source layer name. |
static class |
LayerMapper.SchemaUidBasedLayerMapper
Default implementation of a layer mapper using a given map mapping schema uid
to target layer name.
|
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_NEW_DEFAULT_LAYER
Use this field as result of
getLayer(MappingContext) to force creation
of a new project default layer |
static LayerMapper |
CREATE_NEW_DEFAULT_LAYER_MAPPER
Default implementation of a LayerMapper always answering
getLayer(MappingContext) call with
CREATE_NEW_DEFAULT_LAYER to force creation of a new default layer |
Modifier and Type | Method and Description |
---|---|
String |
getLayer(LayerMapper.MappingContext mappingContext)
|
static final String CREATE_NEW_DEFAULT_LAYER
getLayer(MappingContext)
to force creation
of a new project default layer
getLayer(MappingContext)
,
Constant Field Valuesstatic final LayerMapper CREATE_NEW_DEFAULT_LAYER_MAPPER
getLayer(MappingContext)
call with
CREATE_NEW_DEFAULT_LAYER
to force creation of a new default layer
@NotNull String getLayer(@NotNull LayerMapper.MappingContext mappingContext)
name
of the layer
to be used for the given schema.
Return CREATE_NEW_DEFAULT_LAYER
to force creation of a new default layer
in the target project which should be used for the transported schema.mappingContext
- mapping data related to the transported schemaname
of the layer
to be used.CREATE_NEW_DEFAULT_LAYER
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210