Class DefaultCMSDataMapper
java.lang.Object
ma.glasnost.orika.impl.ConfigurableMapper
de.hybris.platform.webservicescommons.mapping.impl.DefaultDataMapper
de.hybris.platform.cmsocc.mapping.DefaultCMSDataMapper
- All Implemented Interfaces:
CMSDataMapper,DataMapper,ma.glasnost.orika.MapperFacade,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
The mapper to convert an object to another object using
DefaultDataMapper.
It uses the list of converters for different source types.-
Field Summary
Fields inherited from interface de.hybris.platform.webservicescommons.mapping.DataMapper
FIELD_PREFIX, FIELD_SET_NAME, MAP_NULLS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(ma.glasnost.orika.MapperFactory factory) protected List<DataToWsConverter>Method to convert a source object to a target object using jaxb.<S,D> D Create and return a new instance of type D mapped with the specifiedfieldsofsourceObject.voidsetConverters(List<DataToWsConverter> converters) Methods inherited from class de.hybris.platform.webservicescommons.mapping.impl.DefaultDataMapper
addAllSpringBeans, addConverter, addFieldMapper, addFilter, addMapper, configureFactoryBuilder, createMappingContext, createMappingContext, createMappingContext, createMappingContextForGeneric, getBeansForConfiguration, map, map, map, map, mapAsCollection, mapAsList, mapAsSet, mapGeneric, registerObjectFactory, setApplicationContext, setFieldSetBuilderMethods inherited from class ma.glasnost.orika.impl.ConfigurableMapper
convert, convert, dedicatedMapperFor, dedicatedMapperFor, dedicatedMapperFor, dedicatedMapperFor, factoryModified, init, map, map, map, map, map, map, map, map, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, newObject, resolveMappingStrategyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.webservicescommons.mapping.DataMapper
map, map, map, map, map, map, mapAsCollection, mapAsList, mapAsSet, mapGeneric
-
Constructor Details
-
DefaultCMSDataMapper
public DefaultCMSDataMapper()
-
-
Method Details
-
map
Description copied from interface:CMSDataMapperMethod to convert a source object to a target object using jaxb.- Specified by:
mapin interfaceCMSDataMapper- Parameters:
data- the source objectfields- the list of fields to populate in the target object- Returns:
- the target object
-
map
Description copied from interface:DataMapperCreate and return a new instance of type D mapped with the specifiedfieldsofsourceObject.- Specified by:
mapin interfaceDataMapper- Overrides:
mapin classDefaultDataMapper- Parameters:
sourceObject- the object to map fromdestinationClass- the type of the new object to returnfields- comma-separated fields to map- Returns:
- a new instance of type D mapped with the
fieldsofsourceObject
-
configure
protected void configure(ma.glasnost.orika.MapperFactory factory) - Overrides:
configurein classDefaultDataMapper
-
getConverters
-
setConverters
-