Class CreateMediaPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.media.populator.CreateMediaPopulator
-
- All Implemented Interfaces:
Populator<MediaData,MediaModel>
public class CreateMediaPopulator extends java.lang.Object implements Populator<MediaData,MediaModel>
This populator will populate theMediaModel
from theMediaData
.
-
-
Constructor Summary
Constructors Constructor Description CreateMediaPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CatalogVersionService
getCatalogVersionService()
void
populate(MediaData source, MediaModel target)
Populate the target instance with values from the source instance.void
setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-
-
Method Detail
-
populate
public void populate(MediaData source, MediaModel target) throws ConversionException
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in interfacePopulator<MediaData,MediaModel>
- Parameters:
source
- the source objecttarget
- the target to fill- Throws:
ConversionException
- if an error occurs
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-