Class LocalTransformImpl
- java.lang.Object
-
- org.alfresco.repo.content.transform.AbstractLocalTransform
-
- org.alfresco.repo.content.transform.LocalTransformImpl
-
- All Implemented Interfaces:
LocalTransform
public class LocalTransformImpl extends AbstractLocalTransform
A local transformer using flat transform options. Instances are automatically created for transformers identified by alfresco/transform json files and returned from T-Engines which are themselves identified by global properties or system properties the match the pattern localTransform.<name>.url. The transforms take place in a separate process (typically a Docker container).
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
log, mimetypeService, name, transformerDebug, transformsTransformOptionNames
-
-
Constructor Summary
Constructors Constructor Description LocalTransformImpl(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String,Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.client.model.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, String baseUrl, int startupRetryPeriodSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAvailable()protected voidtransformImpl(ContentReader reader, ContentWriter writer, Map<String,String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef)-
Methods inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
getName, getStrippedTransformOptions, getTransformsTransformOptionNames, transform
-
-
-
-
Constructor Detail
-
LocalTransformImpl
public LocalTransformImpl(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String,Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.client.model.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, String baseUrl, int startupRetryPeriodSeconds)
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailablein classAbstractLocalTransform
-
transformImpl
protected void transformImpl(ContentReader reader, ContentWriter writer, Map<String,String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef)
- Specified by:
transformImplin classAbstractLocalTransform
-
-