Class TransformerSelectorImplOriginal
- java.lang.Object
-
- org.alfresco.repo.content.transform.TransformerSelectorImplOriginal
-
- All Implemented Interfaces:
TransformerSelector
public class TransformerSelectorImplOriginal extends java.lang.Object implements TransformerSelector
Implementation of a transformer selector that matches the code that was in place before a selector was introduced. Class is not used but exists to allow customers to maintain the previous approach if they really wish.- Author:
- Alan Davis
-
-
Constructor Summary
Constructors Constructor Description TransformerSelectorImplOriginal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ContentTransformer>selectTransformers(java.lang.String sourceMimetype, long sourceSize, java.lang.String targetMimetype, TransformationOptions options)Returns a sorted list of transformers that identifies the order in which transformers should be tried.voidsetContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry)
-
-
-
Method Detail
-
setContentTransformerRegistry
public void setContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry)
-
selectTransformers
public java.util.List<ContentTransformer> selectTransformers(java.lang.String sourceMimetype, long sourceSize, java.lang.String targetMimetype, TransformationOptions options)
Description copied from interface:TransformerSelectorReturns a sorted list of transformers that identifies the order in which transformers should be tried.- Specified by:
selectTransformersin interfaceTransformerSelectoroptions- transformation options- Returns:
- a sorted list of transformers, with the best one first.
-
-