Class SiteModelPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.sites.populator.model.SiteModelPopulator
-
- All Implemented Interfaces:
Populator<CMSSiteModel,SiteData>
public class SiteModelPopulator extends java.lang.Object implements Populator<CMSSiteModel,SiteData>
Populates a DTO from a
-
-
Constructor Summary
Constructors Constructor Description SiteModelPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocalizedPopulatorgetLocalizedPopulator()protected java.util.function.BiConsumer<java.util.Locale,java.lang.String>getSiteDataNameSetter(SiteData target)protected java.util.function.Function<java.util.Locale,java.lang.String>getSiteModelNameGetter(CMSSiteModel source)protected java.util.List<java.lang.String>getSortedContentCatalogsID(java.util.List<ContentCatalogModel> contentCatalogs)This method returns a list of the IDs of the provided content catalogs.voidpopulate(CMSSiteModel source, SiteData target)Populate the target instance with values from the source instance.voidsetLocalizedPopulator(LocalizedPopulator localizedPopulator)
-
-
-
Method Detail
-
populate
public void populate(CMSSiteModel source, SiteData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CMSSiteModel,SiteData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getSiteModelNameGetter
protected java.util.function.Function<java.util.Locale,java.lang.String> getSiteModelNameGetter(CMSSiteModel source)
-
getSiteDataNameSetter
protected java.util.function.BiConsumer<java.util.Locale,java.lang.String> getSiteDataNameSetter(SiteData target)
-
getSortedContentCatalogsID
protected java.util.List<java.lang.String> getSortedContentCatalogsID(java.util.List<ContentCatalogModel> contentCatalogs)
This method returns a list of the IDs of the provided content catalogs. Please note that the order is maintained.- Parameters:
contentCatalogs- The content catalogs for which to retrieve their IDs.- Returns:
- The list of IDs of the provided content catalogs.
-
getLocalizedPopulator
protected LocalizedPopulator getLocalizedPopulator()
-
setLocalizedPopulator
public void setLocalizedPopulator(LocalizedPopulator localizedPopulator)
-
-