public class DefaultCMSDataMapper extends DefaultDataMapper
DefaultDataMapper used for mapping
cmsfacades's Data objects into WsDTOs.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
LOCALIZED_TITLE |
protected static java.lang.String |
TITLE |
FIELD_PREFIX, FIELD_SET_NAME, MAP_NULLS| Constructor and Description |
|---|
DefaultCMSDataMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(MapperFactory factory)
Configure MapperFactory to:
1. |
protected java.util.Map<java.lang.String,java.lang.Object> |
convertMapData(java.util.Map<java.lang.String,java.lang.Object> compSpecificProps)
Convert Map value from Data to WsDTO for MediaData and NavigationNodeData, which are not CMS components
|
<S,D> D |
map(S sourceObject,
java.lang.Class<D> destinationClass,
java.lang.String fields)
Create and return a new instance of type D mapped with the specified
fields of
sourceObject. |
<S,D> void |
map(S sourceObject,
D destinationObject,
java.lang.String fields)
Maps the properties of
sourceObject onto destinationObject. |
protected java.lang.Object |
mapDataToWsDTO(java.lang.String key,
java.lang.Object obj)
For the Map
DefaultDataMapper.map(Object, Class, String)' functions
will be explicitly called. |
addAllSpringBeans, addConverter, addFieldMapper, addFilter, addMapper, configureFactoryBuilder, createMappingContext, createMappingContext, createMappingContext, createMappingContextForGeneric, getBeansForConfiguration, map, map, map, mapAsCollection, mapAsList, mapAsSet, mapGeneric, registerObjectFactory, setApplicationContext, setFieldSetBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap, mapprotected static final java.lang.String LOCALIZED_TITLE
protected static final java.lang.String TITLE
public <S,D> void map(S sourceObject,
D destinationObject,
java.lang.String fields)
DataMappersourceObject onto destinationObject.map in interface DataMappermap in class DefaultDataMappersourceObject - the object from which to read the propertiesdestinationObject - the object onto which the properties should be mappedfields - comma-separated fields to mappublic <S,D> D map(S sourceObject,
java.lang.Class<D> destinationClass,
java.lang.String fields)
DataMapperfields of
sourceObject.map in interface DataMappermap in class DefaultDataMappersourceObject - the object to map fromdestinationClass - the type of the new object to returnfields - comma-separated fields to mapfields of sourceObjectprotected void configure(MapperFactory factory)
configure in class DefaultDataMapperprotected java.util.Map<java.lang.String,java.lang.Object> convertMapData(java.util.Map<java.lang.String,java.lang.Object> compSpecificProps)
protected java.lang.Object mapDataToWsDTO(java.lang.String key,
java.lang.Object obj)
DefaultDataMapper.map(Object, Class, String)' functions
will be explicitly called.Copyright © 2018 SAP SE. All Rights Reserved.