Class Transformer
- java.lang.Object
-
- org.alfresco.transform.client.model.config.Transformer
-
public class Transformer extends java.lang.ObjectRepresents a set of transformations supported by the Transform Service or Local Transform Service Registry that share the same transform options. Each may be an actual transformer or a pipeline of multiple transformers. It is possible that more than one transformer may able to perform a transformation from one mimetype to another. The actual selection of transformer is up to the Transform Service or Local Transform Service Registry to decide. Clients may useTransformServiceRegistry.isSupported(String, long, String, java.util.Map, String)to decide if they should send a request to the Transform Service. As a result clients have a simple generic view of transformations which allows new transformations to be added without the need to change client data structures other than to define new name value pairs. For this to work the Transform Service defines unique names for each option.- transformerName - is optional but if supplied should be unique. The client should infer nothing from the name as it is simply a label, but the Local Transform Service Registry will use the name in pipelines.
- transformOptions - a grouping of individual transformer transformOptions. The group may be optional and may contain nested transformOptions.
- transformerPipeline - an array of pairs of transformer name and target extension for each transformer in the pipeline. The last one should not have an extension as that is defined by the request and should be in the supported list.
-
-
Constructor Summary
Constructors Constructor Description Transformer()Transformer(java.lang.String transformerName, java.util.List<TransformOption> transformOptions, java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)Transformer(java.lang.String transformerName, java.util.List<TransformStep> transformerPipeline, java.util.List<TransformOption> transformOptions, java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SupportedSourceAndTarget>getSupportedSourceAndTargetList()java.lang.StringgetTransformerName()java.util.List<TransformStep>getTransformerPipeline()java.util.List<TransformOption>getTransformOptions()voidsetSupportedSourceAndTargetList(java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)voidsetTransformerName(java.lang.String transformerName)voidsetTransformerPipeline(java.util.List<TransformStep> transformerPipeline)voidsetTransformOptions(java.util.List<TransformOption> transformOptions)
-
-
-
Constructor Detail
-
Transformer
public Transformer()
-
Transformer
public Transformer(java.lang.String transformerName, java.util.List<TransformOption> transformOptions, java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
Transformer
public Transformer(java.lang.String transformerName, java.util.List<TransformStep> transformerPipeline, java.util.List<TransformOption> transformOptions, java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
-
Method Detail
-
getTransformerName
public java.lang.String getTransformerName()
-
setTransformerName
public void setTransformerName(java.lang.String transformerName)
-
getTransformerPipeline
public java.util.List<TransformStep> getTransformerPipeline()
-
setTransformerPipeline
public void setTransformerPipeline(java.util.List<TransformStep> transformerPipeline)
-
getTransformOptions
public java.util.List<TransformOption> getTransformOptions()
-
setTransformOptions
public void setTransformOptions(java.util.List<TransformOption> transformOptions)
-
getSupportedSourceAndTargetList
public java.util.List<SupportedSourceAndTarget> getSupportedSourceAndTargetList()
-
setSupportedSourceAndTargetList
public void setSupportedSourceAndTargetList(java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
-