Class PageDataToWsConverter
- java.lang.Object
-
- de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter<AbstractPageData,CMSPageWsDTO>
-
- de.hybris.platform.cmsoccaddon.mapping.converters.PageDataToWsConverter
-
- All Implemented Interfaces:
DataToWsConverter<AbstractPageData,CMSPageWsDTO>
public class PageDataToWsConverter extends AbstractDataToWsConverter<AbstractPageData,CMSPageWsDTO>
The converter to convertAbstractPageDatadata object toCMSPageWsDTOws object.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLOCALIZED_TITLEprotected static java.lang.StringTITLE-
Fields inherited from class de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter
fields
-
-
Constructor Summary
Constructors Constructor Description PageDataToWsConverter()
-
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(CMSPageWsDTO 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
-
-
-
-
Field Detail
-
LOCALIZED_TITLE
protected static final java.lang.String LOCALIZED_TITLE
- See Also:
- Constant Field Values
-
TITLE
protected static final java.lang.String TITLE
- See Also:
- Constant Field Values
-
-
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<AbstractPageData,CMSPageWsDTO>- Overrides:
customizein classAbstractDataToWsConverter<AbstractPageData,CMSPageWsDTO>- Parameters:
factory- theMapperFactorythat can be used to add new customization.
-
isOtherPropertiesFieldVisible
protected boolean isOtherPropertiesFieldVisible(CMSPageWsDTO wsData)
Method to check whether the otherProperties should be populated.- Parameters:
wsData- theCMSPageWsDTOthat is used to determine whether the otherProperties field is visible or not.- Returns:
- true if otherProperties field should be populated in ws data object, false otherwise
-
-