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>
The converter to convert
AbstractPageData data object to CMSPageWsDTO ws object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.cmsoccaddon.mapping.converters.AbstractDataToWsConverter
fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(ma.glasnost.orika.MapperFactory factory) Method to customize conversion between source and target object.Class that represents a source objectClass that represents a target objectprotected booleanMethod 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 Details
-
LOCALIZED_TITLE
- See Also:
-
TITLE
- See Also:
-
LOCALIZED_DESCRIPTION
- See Also:
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
PageDataToWsConverter
public PageDataToWsConverter()
-
-
Method Details
-
getDataClass
Description copied from interface:DataToWsConverterClass that represents a source object- Returns:
- the
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
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
-