Class AbstractNamedQueryDataPopulator

java.lang.Object
de.hybris.platform.cmsfacades.common.populator.impl.AbstractNamedQueryDataPopulator
All Implemented Interfaces:
Populator<NamedQueryData,NamedQuery>
Direct Known Subclasses:
MediaSearchByCodeNamedQueryDataPopulator

public abstract class AbstractNamedQueryDataPopulator extends Object implements Populator<NamedQueryData,NamedQuery>
This populator will take parameters of and add it to the parameters map.
  • Field Details

  • Constructor Details

    • AbstractNamedQueryDataPopulator

      public AbstractNamedQueryDataPopulator()
  • Method Details

    • convertParameters

      public abstract Map<String,? extends Object> convertParameters(String params)
      Converts the parameters from the request String into a Map. The input, if not empty, should be already validated with the following format: {param}:{value} Multiple parameters are also allowed separated by comma
      Parameters:
      params - - the parameters received from the request
      Returns:
      a Map of parameters
    • populate

      public void populate(NamedQueryData namedQueryData, NamedQuery namedQuery) throws ConversionException
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<NamedQueryData,NamedQuery>
      Parameters:
      namedQueryData - the source object
      namedQuery - the target to fill
      Throws:
      ConversionException - if an error occurs
    • buildParameterStringMap

      public Map<String,String> buildParameterStringMap(String params)
      Using the parameter String, convert it to a Map<String, String> for future processing.
      Parameters:
      params - - the String parameter received from the request
      Returns:
      a Map<String, String> representing the requested parameter String
    • getActiveCatalogVersion

      public CatalogVersionModel getActiveCatalogVersion()
    • getCmsAdminSiteService

      protected CMSAdminSiteService getCmsAdminSiteService()
    • setCmsAdminSiteService

      public void setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)