Package de.espirit.firstspirit.transport
Interface LayerMapper
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
LayerMapper.LayerNameBasedLayerMapper
,LayerMapper.SchemaUidBasedLayerMapper
Mapper providing
This mapper is used in
layers
to be used for transported Schema
instances.This mapper is used in
content transport
and
external sync
.- Since:
- 5.2.513
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Default implementation based on a given map mapping from source layer name to target layer name.static interface
Mapping context providing access to the transportedschema
and the source layer name.static final class
Default implementation of a layer mapper using a given map mapping schema uid to target layer name. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Use this field as result ofgetLayer(MappingContext)
to force creation of a newproject default layer
static final LayerMapper
Default implementation of a LayerMapper always answeringgetLayer(MappingContext)
call withCREATE_NEW_DEFAULT_LAYER
to force creation of a newdefault layer
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getLayer
(@NotNull LayerMapper.MappingContext mappingContext)
-
Field Details
-
CREATE_NEW_DEFAULT_LAYER
Use this field as result ofgetLayer(MappingContext)
to force creation of a newproject default layer
- Since:
- 5.2.513
- See Also:
-
CREATE_NEW_DEFAULT_LAYER_MAPPER
Default implementation of a LayerMapper always answeringgetLayer(MappingContext)
call withCREATE_NEW_DEFAULT_LAYER
to force creation of a newdefault layer
- Since:
- 5.2.513
-
-
Method Details
-
getLayer
Gets thename
of thelayer
to be used for the given schema. ReturnCREATE_NEW_DEFAULT_LAYER
to force creation of a newdefault layer
in the target project which should be used for the transported schema.
-