Interface MediaFormatProviderManager


  • public interface MediaFormatProviderManager
    Collects all media format definitions provided by applications via MediaFormatProvider interface.

    This interface is implemented by an OSGi services. It should be considered INTERNAL and not be used by applications.

    • Method Detail

      • getMediaFormats

        SortedSet<MediaFormat> getMediaFormats​(org.apache.sling.api.resource.Resource contextResource)
        Get all media format definitions for application.
        Parameters:
        contextResource - Context resource to get media formats for
        Returns:
        Media format definitions
      • getAllMediaFormats

        SortedMap<String,​SortedSet<MediaFormat>> getAllMediaFormats()
        Get all media format definitions deployed in the system, grouped by bundle which exposes them.
        Returns:
        Map with bundle name as key, set of media formats as values.