mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-07-31 17:38:33 +00:00
ATS-466/ATS-538/ATS-539: Incorporate Misc T-Engine in ATS (#98)
- fix multiple Misc Transformer bugs related to file mimeTypes - remove usage of 'source/targetMimetype' as transform options/parameters - add 'source/targetMimetype' arguments to the 'processTransform' method - remove unnecessary code (e.g. useless overridden methods) - add quick* test resource files - add integration test for 'Local Transformations' on the Misc engine - set up Integration Tests POM configuration for all T-Engine modules
This commit is contained in:
@@ -214,7 +214,8 @@ public abstract class AbstractTransformerController implements TransformControll
|
||||
// Run the transformation
|
||||
try
|
||||
{
|
||||
processTransform(sourceFile, targetFile, request.getTransformRequestOptions(), timeout);
|
||||
processTransform(sourceFile, targetFile, request.getSourceMediaType(),
|
||||
request.getTargetMediaType(), request.getTransformRequestOptions(), timeout);
|
||||
}
|
||||
catch (TransformException e)
|
||||
{
|
||||
|
@@ -65,8 +65,9 @@ public interface TransformController
|
||||
|
||||
ResponseEntity<TransformReply> transform(TransformRequest transformRequest, Long timeout);
|
||||
|
||||
void processTransform(File sourceFile, File targetFile, Map<String, String> transformOptions,
|
||||
Long timeout);
|
||||
void processTransform(final File sourceFile, final File targetFile,
|
||||
final String sourceMimetype, final String targetMimetype,
|
||||
final Map<String, String> transformOptions, final Long timeout);
|
||||
|
||||
String getTransformerName();
|
||||
|
||||
|
Reference in New Issue
Block a user