Class DefaultCMSMediaFormatService
- java.lang.Object
-
- de.hybris.platform.cmsfacades.media.service.impl.DefaultCMSMediaFormatService
-
- All Implemented Interfaces:
CMSMediaFormatService
public class DefaultCMSMediaFormatService extends java.lang.Object implements CMSMediaFormatService
Default implementation ofCMSMediaFormatServiceinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSMediaFormatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.Class<? extends AbstractCMSComponentModel>,java.util.Collection<java.lang.String>>getCmsComponentMediaFormats()protected CMSMediaFormatDaogetCmsMediaFormatDao()java.util.Collection<MediaFormatModel>getMediaFormatsByComponentType(java.lang.Class<? extends AbstractCMSComponentModel> classType)Retrieve a list of all media formats which are supported by the specified CMS component modelprotected java.util.Optional<java.util.Collection<java.lang.String>>getMediaFormatsByType(java.lang.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(java.util.Map<java.lang.Class<? extends AbstractCMSComponentModel>,java.util.Collection<java.lang.String>> cmsComponentMediaFormats)voidsetCmsMediaFormatDao(CMSMediaFormatDao cmsMediaFormatDao)
-
-
-
Method Detail
-
getMediaFormatsByComponentType
public java.util.Collection<MediaFormatModel> getMediaFormatsByComponentType(java.lang.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
protected java.util.Optional<java.util.Collection<java.lang.String>> getMediaFormatsByType(java.lang.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.- 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 java.util.Map<java.lang.Class<? extends AbstractCMSComponentModel>,java.util.Collection<java.lang.String>> getCmsComponentMediaFormats()
-
setCmsComponentMediaFormats
public void setCmsComponentMediaFormats(java.util.Map<java.lang.Class<? extends AbstractCMSComponentModel>,java.util.Collection<java.lang.String>> cmsComponentMediaFormats)
-
getCmsMediaFormatDao
protected CMSMediaFormatDao getCmsMediaFormatDao()
-
setCmsMediaFormatDao
public void setCmsMediaFormatDao(CMSMediaFormatDao cmsMediaFormatDao)
-
-