Class SiteModelPopulator
java.lang.Object
de.hybris.platform.cmsfacades.sites.populator.model.SiteModelPopulator
- All Implemented Interfaces:
Populator<CMSSiteModel,SiteData>
Populates a DTO from a
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalizedPopulatorprotected BiConsumer<Locale,String> getSiteDataNameSetter(SiteData target) getSiteModelNameGetter(CMSSiteModel source) getSortedContentCatalogsID(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)
-
Constructor Details
-
SiteModelPopulator
public SiteModelPopulator()
-
-
Method Details
-
populate
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
-
getSiteDataNameSetter
-
getSortedContentCatalogsID
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
-
setLocalizedPopulator
-