Class SwitchingTransformServiceRegistry

  • All Implemented Interfaces:
    org.alfresco.transform.client.registry.TransformServiceRegistry

    public class SwitchingTransformServiceRegistry
    extends Object
    implements org.alfresco.transform.client.registry.TransformServiceRegistry
    A transform service registry that falls back between different implementations if not supported.
    Author:
    adavis
    • Constructor Detail

      • SwitchingTransformServiceRegistry

        public SwitchingTransformServiceRegistry​(org.alfresco.transform.client.registry.TransformServiceRegistry primary,
                                                 org.alfresco.transform.client.registry.TransformServiceRegistry secondary)
    • Method Detail

      • findMaxSize

        public long findMaxSize​(String sourceMimetype,
                                String targetMimetype,
                                Map<String,​String> options,
                                String renditionName)
        Specified by:
        findMaxSize in interface org.alfresco.transform.client.registry.TransformServiceRegistry
      • findTransformerName

        public String findTransformerName​(String sourceMimetype,
                                          long sourceSizeInBytes,
                                          String targetMimetype,
                                          Map<String,​String> actualOptions,
                                          String renditionName)
        Specified by:
        findTransformerName in interface org.alfresco.transform.client.registry.TransformServiceRegistry