Class LocalPipelineTransform
java.lang.Object
org.alfresco.repo.content.transform.AbstractLocalTransform
org.alfresco.repo.content.transform.LocalPipelineTransform
- All Implemented Interfaces:
LocalTransform
Transformer that passes a document through a pipeline of transformations to arrive at an target mimetype.
Instances are automatically created for transformers identified by alfresco/transform json files and returned from T-Engines which are themselves identified by global 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, nodeService, transformerDebug, transformsTransformOptionNames -
Constructor Summary
ConstructorsConstructorDescriptionLocalPipelineTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, NodeService nodeService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIntermediateTransformer(LocalTransform intermediateTransformer, String targetMimetype) getIntermediateTransformer(int i) booleanprotected 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 Details
-
LocalPipelineTransform
public LocalPipelineTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, NodeService nodeService)
-
-
Method Details
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classAbstractLocalTransform
-
addIntermediateTransformer
public void addIntermediateTransformer(LocalTransform intermediateTransformer, String targetMimetype) -
getIntermediateTransformer
-
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
-