Class PageTypeModelPopulator

  • All Implemented Interfaces:
    Populator<ComposedTypeModel,​PageTypeData>

    @Deprecated
    public class PageTypeModelPopulator
    extends java.lang.Object
    implements Populator<ComposedTypeModel,​PageTypeData>
    Deprecated.
    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 Detail

      • PageTypeModelPopulator

        public PageTypeModelPopulator()
        Deprecated.
    • Method Detail

      • 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
      • setPageTypeMappingRegistry

        public void setPageTypeMappingRegistry​(PageTypeMappingRegistry pageTypeMappingRegistry)
        Deprecated.