public interface ContentTransformerWorker
extends org.gytheio.content.ContentWorker
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTransformable(List<String> sourceMediaTypes,
String targetMediaType,
TransformationOptions options)
Determines whether or not the worker can handle the transformation from the
given source media types to the given target media type with the given options.
|
List<org.gytheio.content.ContentWorkResult> |
transform(List<org.gytheio.content.ContentReference> sources,
List<org.gytheio.content.ContentReference> targets,
TransformationOptions options,
ContentTransformerWorkerProgressReporter progressReporter)
Transforms the given source content references into the given target content references
with the given options, reporting back via the given progress reporter.
|
List<org.gytheio.content.ContentWorkResult> |
transform(List<org.gytheio.content.ContentReference> sources,
String targetMediaType,
TransformationOptions options,
ContentTransformerWorkerProgressReporter progressReporter)
Transforms the given source content references into target content references created by the
worker based on the given media type with the given options, reporting back
via the given progress reporter.
|
List<org.gytheio.content.ContentWorkResult> transform(List<org.gytheio.content.ContentReference> sources, List<org.gytheio.content.ContentReference> targets, TransformationOptions options, ContentTransformerWorkerProgressReporter progressReporter) throws Exception
Depending on the transformation being requested, multiple sources may be merged into a single target, a single source may be split into multiple targets, multiple sources may be transformed to multiple targets, etc. It is up to the caller to know what type of targets to expect.
Additionally, some implementations may not be able to transform into the targets specified or the number of targets may not be known before hand so implementations must return the final target references.
Use {@link #transform(List, String, TransformationOptions, ContentTransformerWorkerProgressReporter) to have the worker create the target content references.
sources - the list of source content referencestargets - the list of target content referencesoptions - progressReporter - ExceptionList<org.gytheio.content.ContentWorkResult> transform(List<org.gytheio.content.ContentReference> sources, String targetMediaType, TransformationOptions options, ContentTransformerWorkerProgressReporter progressReporter) throws Exception
Depending on the transformation being requested, multiple sources may be merged into a single target, a single source may be split into multiple targets, multiple sources may be transformed to multiple targets, etc. It is up to the caller to know what type of targets to expect.
sources - targetMediaType - options - progressReporter - Exceptionboolean isTransformable(List<String> sourceMediaTypes, String targetMediaType, TransformationOptions options)
sourceMediaTypes - targetMediaType - options - Copyright © 2015 Alfresco Software. All rights reserved.