Class PageTypeModelPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pages.populator.model.PageTypeModelPopulator
-
- All Implemented Interfaces:
Populator<ComposedTypeModel,PageTypeData>
@Deprecated public class PageTypeModelPopulator extends java.lang.Object implements Populator<ComposedTypeModel,PageTypeData>
Deprecated.since 6.6Populator to populate the basic attribute from aComposedTypeModelto aPageTypeData.
The type value is used when creating a page. This information is required by the HTTP message converter to determine how to unmarshall the request object body correctly. If no type value is found in the request object body, the HTTP message converter will convert the dto into anAbstractPageModelinstead of a specific page type model such asContentPageModel,ProductPageModel, etc.Will populate:
type
-
-
Constructor Summary
Constructors Constructor Description PageTypeModelPopulator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringcreateTypedataForClass(java.lang.Class<?> clazz)Deprecated.Create a typedata value based on the given class name.protected PageTypeMappingRegistrygetPageTypeMappingRegistry()Deprecated.voidpopulate(ComposedTypeModel source, PageTypeData target)Deprecated.Populate the target instance with values from the source instance.voidsetPageTypeMappingRegistry(PageTypeMappingRegistry pageTypeMappingRegistry)Deprecated.
-
-
-
Method Detail
-
populate
public void populate(ComposedTypeModel source, PageTypeData target) throws ConversionException
Deprecated.Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ComposedTypeModel,PageTypeData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
createTypedataForClass
protected java.lang.String createTypedataForClass(java.lang.Class<?> clazz)
Deprecated.Create a typedata value based on the given class name. The typedata must start with a lower case letter.- Parameters:
clazz- - the class used to create a typedata- Returns:
- a typedata
-
getPageTypeMappingRegistry
protected PageTypeMappingRegistry getPageTypeMappingRegistry()
Deprecated.
-
setPageTypeMappingRegistry
public void setPageTypeMappingRegistry(PageTypeMappingRegistry pageTypeMappingRegistry)
Deprecated.
-
-