Class DefaultCMSMediaFormatService
java.lang.Object
de.hybris.platform.cmsfacades.media.service.impl.DefaultCMSMediaFormatService
- All Implemented Interfaces:
CMSMediaFormatService
Default implementation of
CMSMediaFormatService interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> protected CMSMediaFormatDaogetMediaFormatsByComponentType(Class<? extends AbstractCMSComponentModel> classType) Retrieve a list of all media formats which are supported by the specified CMS component modelprotected Optional<Collection<String>>getMediaFormatsByType(Class classType) Get the format list by recursively walking up in the hierarchy class type, until it either finds the collection or reaches the upper level and returns and empty optional.voidsetCmsComponentMediaFormats(Map<Class<? extends AbstractCMSComponentModel>, Collection<String>> cmsComponentMediaFormats) voidsetCmsMediaFormatDao(CMSMediaFormatDao cmsMediaFormatDao)
-
Constructor Details
-
DefaultCMSMediaFormatService
public DefaultCMSMediaFormatService()
-
-
Method Details
-
getMediaFormatsByComponentType
public Collection<MediaFormatModel> getMediaFormatsByComponentType(Class<? extends AbstractCMSComponentModel> classType) Description copied from interface:CMSMediaFormatServiceRetrieve a list of all media formats which are supported by the specified CMS component model- Specified by:
getMediaFormatsByComponentTypein interfaceCMSMediaFormatService- Parameters:
classType- the CMS component model class- Returns:
- the collection of media formats; never null
-
getMediaFormatsByType
Get the format list by recursively walking up in the hierarchy class type, until it either finds the collection or reaches the upper level and returns and empty optional.- Parameters:
classType- the class of any type until Object- Returns:
- the format collection or empty if it cannot find the configuration in the map.
-
getCmsComponentMediaFormats
protected Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> getCmsComponentMediaFormats() -
setCmsComponentMediaFormats
public void setCmsComponentMediaFormats(Map<Class<? extends AbstractCMSComponentModel>, Collection<String>> cmsComponentMediaFormats) -
getCmsMediaFormatDao
-
setCmsMediaFormatDao
-