REPO-5191 Bug: T-Engine should provide mapping rather than the repo. (#316)

Bug found while reviewing documents on how to create a custom metadata extractor. The original refactor had left the repo doing the mapping. It should have been passing the fully qualified repo properties to the T-Engine to do the mapping.

Linked to:
    Alfresco/alfresco-community-repo#227
    Alfresco/acs-packaging#1826
This commit is contained in:
Alan Davis
2021-01-06 22:25:40 +00:00
committed by GitHub
parent 6da39399db
commit 2fd11d5aed
8 changed files with 267 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ public class AIOControllerTikaTest extends TikaControllerTest
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
}
@Test
@Override
public void testGetInfoFromConfigWithNoTransformOptions()
@@ -83,4 +83,12 @@ public class AIOControllerTikaTest extends TikaControllerTest
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
}
@Test
@Override
public void xlsxEmbedTest()
{
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
// It uses the real class path rather than the test one.
}
}

View File

@@ -13,6 +13,10 @@
],
"metadataOptions": [
{"value": {"name": "extractMapping"}}
],
"metadataEmbedOptions": [
{"value": {"name": "metadata", "required": true}},
{"value": {"name": "targetEncoding"}}
]
},
"transformers": [
@@ -981,6 +985,15 @@
"transformOptions": [
"metadataOptions"
]
},
{
"transformerName": "SamplePoiMetadataEmbedder",
"supportedSourceAndTargetList": [
{"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "alfresco-metadata-embed"}
],
"transformOptions": [
"metadataEmbedOptions"
]
}
]
}