Class DefaultCMSMediaFormatService

  • All Implemented Interfaces:
    CMSMediaFormatService

    public class DefaultCMSMediaFormatService
    extends java.lang.Object
    implements CMSMediaFormatService
    Default implementation of CMSMediaFormatService interface.
    • Constructor Detail

      • DefaultCMSMediaFormatService

        public DefaultCMSMediaFormatService()
    • Method Detail

      • 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)
      • setCmsMediaFormatDao

        public void setCmsMediaFormatDao​(CMSMediaFormatDao cmsMediaFormatDao)