Class LocalFailoverTransform
java.lang.Object
org.alfresco.repo.content.transform.AbstractLocalTransform
org.alfresco.repo.content.transform.LocalFailoverTransform
- All Implemented Interfaces:
LocalTransform
Transformer that passes a document to a sequence of transforms until one succeeds.
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, transformerDebug, transformsTransformOptionNames -
Constructor Summary
ConstructorsConstructorDescriptionLocalFailoverTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStepTransformer(LocalTransform stepTransformer) 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
-
LocalFailoverTransform
public LocalFailoverTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry)
-
-
Method Details
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classAbstractLocalTransform
-
addStepTransformer
-
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
-