Class PageDataToWsConverter

All Implemented Interfaces:
DataToWsConverter<AbstractPageData,CMSPageWsDTO>

public class PageDataToWsConverter extends AbstractDataToWsConverter<AbstractPageData,CMSPageWsDTO>
The converter to convert AbstractPageData data object to CMSPageWsDTO ws object.
  • Field Details

  • Constructor Details

    • PageDataToWsConverter

      public PageDataToWsConverter()
  • Method Details

    • getDataClass

      public Class getDataClass()
      Description copied from interface: DataToWsConverter
      Class that represents a source object
      Returns:
      the Class
    • getWsClass

      public Class getWsClass()
      Description copied from interface: DataToWsConverter
      Class that represents a target object
      Returns:
      the Class
    • customize

      public void customize(ma.glasnost.orika.MapperFactory factory)
      Description copied from interface: DataToWsConverter
      Method to customize conversion between source and target object. This method is called after the basic conversion is finished.
      Specified by:
      customize in interface DataToWsConverter<AbstractPageData,CMSPageWsDTO>
      Overrides:
      customize in class AbstractDataToWsConverter<AbstractPageData,CMSPageWsDTO>
      Parameters:
      factory - the MapperFactory that can be used to add new customization.
    • isOtherPropertiesFieldVisible

      protected boolean isOtherPropertiesFieldVisible(CMSPageWsDTO wsData)
      Method to check whether the otherProperties should be populated.
      Parameters:
      wsData - the CMSPageWsDTO that 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