Package org.alfresco.repo.rendition2
Class SwitchingTransformServiceRegistry
java.lang.Object
org.alfresco.repo.rendition2.SwitchingTransformServiceRegistry
- All Implemented Interfaces:
org.alfresco.transform.registry.TransformServiceRegistry
public class SwitchingTransformServiceRegistry
extends Object
implements org.alfresco.transform.registry.TransformServiceRegistry
A transform service registry that falls back between different implementations if not supported.
- Author:
- adavis
-
Constructor Summary
ConstructorsConstructorDescriptionSwitchingTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry primary, org.alfresco.transform.registry.TransformServiceRegistry secondary) -
Method Summary
Modifier and TypeMethodDescriptionlongfindMaxSize(String sourceMimetype, String targetMimetype, Map<String, String> options, String renditionName) findTransformerName(String sourceMimetype, long sourceSizeInBytes, String targetMimetype, Map<String, String> actualOptions, String renditionName) booleanisSupported(org.alfresco.transform.config.CoreFunction function, String transformerName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.transform.registry.TransformServiceRegistry
isSupported
-
Constructor Details
-
SwitchingTransformServiceRegistry
public SwitchingTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry primary, org.alfresco.transform.registry.TransformServiceRegistry secondary)
-
-
Method Details
-
findMaxSize
public long findMaxSize(String sourceMimetype, String targetMimetype, Map<String, String> options, String renditionName) - Specified by:
findMaxSizein interfaceorg.alfresco.transform.registry.TransformServiceRegistry
-
findTransformerName
public String findTransformerName(String sourceMimetype, long sourceSizeInBytes, String targetMimetype, Map<String, String> actualOptions, String renditionName) - Specified by:
findTransformerNamein interfaceorg.alfresco.transform.registry.TransformServiceRegistry
-
isSupported
public boolean isSupported(org.alfresco.transform.config.CoreFunction function, String transformerName) - Specified by:
isSupportedin interfaceorg.alfresco.transform.registry.TransformServiceRegistry
-