public class DefaultCMSMediaFormatService extends Object implements CMSMediaFormatService
CMSMediaFormatService interface.| Constructor and Description |
|---|
DefaultCMSMediaFormatService() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> |
getCmsComponentMediaFormats() |
protected CMSMediaFormatDao |
getCmsMediaFormatDao() |
Collection<MediaFormatModel> |
getMediaFormatsByComponentType(Class<? extends AbstractCMSComponentModel> classType)
Retrieve a list of all media formats which are supported by the specified CMS component model
|
protected 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.
|
void |
setCmsComponentMediaFormats(Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> cmsComponentMediaFormats) |
void |
setCmsMediaFormatDao(CMSMediaFormatDao cmsMediaFormatDao) |
public Collection<MediaFormatModel> getMediaFormatsByComponentType(Class<? extends AbstractCMSComponentModel> classType)
CMSMediaFormatServicegetMediaFormatsByComponentType in interface CMSMediaFormatServiceclassType - the CMS component model classprotected Optional<Collection<String>> getMediaFormatsByType(Class classType)
classType - the class of any type until Objectprotected Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> getCmsComponentMediaFormats()
public void setCmsComponentMediaFormats(Map<Class<? extends AbstractCMSComponentModel>,Collection<String>> cmsComponentMediaFormats)
protected CMSMediaFormatDao getCmsMediaFormatDao()
public void setCmsMediaFormatDao(CMSMediaFormatDao cmsMediaFormatDao)
Copyright © 2000-2016 SAP SE. All Rights Reserved.