Class PageTypeModelPopulator

java.lang.Object
de.hybris.platform.cmsfacades.pages.populator.model.PageTypeModelPopulator
All Implemented Interfaces:
Populator<ComposedTypeModel,PageTypeData>

@Deprecated(since="6.6", forRemoval=true) public class PageTypeModelPopulator extends Object implements Populator<ComposedTypeModel,PageTypeData>
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.6
Populator to populate the basic attribute from a ComposedTypeModel to a PageTypeData.

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 an AbstractPageModel instead of a specific page type model such as ContentPageModel, ProductPageModel, etc.

Will populate:

  • type

  • Constructor Details

    • PageTypeModelPopulator

      public PageTypeModelPopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • populate

      public void populate(ComposedTypeModel source, PageTypeData target) throws ConversionException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<ComposedTypeModel,PageTypeData>
      Parameters:
      source - the source object
      target - the target to fill
      Throws:
      ConversionException - if an error occurs
    • createTypedataForClass

      protected String createTypedataForClass(Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
    • setPageTypeMappingRegistry

      public void setPageTypeMappingRegistry(PageTypeMappingRegistry pageTypeMappingRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.