Class SlotDataToWsConverter
- java.lang.Object
-
- de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter<PageContentSlotData,ContentSlotWsDTO>
-
- de.hybris.platform.cmsoccaddon.mapping.converters.SlotDataToWsConverter
-
- All Implemented Interfaces:
DataToWsConverter<PageContentSlotData,ContentSlotWsDTO>
public class SlotDataToWsConverter extends AbstractDataToWsConverter<PageContentSlotData,ContentSlotWsDTO>
The converter to convertPageContentSlotDatadata object toContentSlotWsDTOws object.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter
fields
-
-
Constructor Summary
Constructors Constructor Description SlotDataToWsConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(ma.glasnost.orika.MapperFactory factory)Method to customize conversion between source and target object.java.lang.ClassgetDataClass()Class that represents a source objectjava.lang.ClassgetWsClass()Class that represents a target objectprotected booleanisOtherPropertiesFieldVisible(ContentSlotWsDTO wsData)Method to check whether the otherProperties should be populated.-
Methods inherited from class de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter
canConvert, convert, convertCollection, convertMap, convertPrimitive, getMapper, isCollection, isMap, setMapper
-
-
-
-
Method Detail
-
getDataClass
public java.lang.Class getDataClass()
Description copied from interface:DataToWsConverterClass that represents a source object- Returns:
- the
Class
-
getWsClass
public java.lang.Class getWsClass()
Description copied from interface:DataToWsConverterClass that represents a target object- Returns:
- the
Class
-
customize
public void customize(ma.glasnost.orika.MapperFactory factory)
Description copied from interface:DataToWsConverterMethod to customize conversion between source and target object. This method is called after the basic conversion is finished.- Specified by:
customizein interfaceDataToWsConverter<PageContentSlotData,ContentSlotWsDTO>- Overrides:
customizein classAbstractDataToWsConverter<PageContentSlotData,ContentSlotWsDTO>- Parameters:
factory- theMapperFactorythat can be used to add new customization.
-
isOtherPropertiesFieldVisible
protected boolean isOtherPropertiesFieldVisible(ContentSlotWsDTO wsData)
Method to check whether the otherProperties should be populated.- Parameters:
wsData- theContentSlotWsDTOthat is used to determine whether the otherProperties field is visible or not.- Returns:
- true if otherProperties field should be populated in ws data object.
-
-