10 Commits

Author SHA1 Message Date
Neil McErlean
d1db3663e4 Fix for ALF-5373 Renditions being generated to the same location (e.g. through use of paths/templates) can lead to incorrect renditions/exceptions.
Added new policy to aspect rn:rendition. Rendition nodes, before deletion, have their non-primary parent assocs removed.  Otherwise the deletion of rendition nodes (which just moves them to the archive store) means that renditionService.getRenditions() returns those deleted assocs.
     Enabled HTMLRenderingEngineTest.testImagesSameFolder test case. Changed it slightly so that it deletes renditions/extracted images between test runs to prevent unwanted overwriting of renditions
     Enabled RenditionServiceIntegrationTest.testRenditionPlacements test case. Fixed the test path to point to /.../filename.txt as it should.
           Rewrote the end of the test to cover the cases where a rendition is attempting to overwrite another.
     Refactoring: renamed numerous private variables to aid readability
     Changes to RenditionNodeManager. If:
           a rendition is to an existing node that is not a rendition OR
           a rendition is to an existing rendition node whose source is not the same as the current one OR
           a rendition is to an existing rendition node whose renditionDef's name has changed
     Then throw an exception. We explicitly disallow these use cases now. We may support them in the future with a "forceOverwrite" option somewhere.
     StandardRenditionLocationResolverImpl now uses a RepositoryHelper to locate CompanyHome rather than a Lucene search
     Extensive debug logging added to the service.
     Added some javadoc


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-28 21:00:32 +00:00
Neil McErlean
3c9c19ec74 Adding some debug logging to HTMLRendering and Rendition code.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-12 16:55:36 +00:00
Nick Burch
0fe90a6d1a Add support to the HTML Rendering Engine for outputting the embedded images to the same folder as the html file, rather than the default of a subfolder, and tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23017 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-11 13:37:04 +00:00
Nick Burch
798e35c455 In the HTML rendering engine, when extracting out images, don't include WCM specific associations. (We'll put back some more general ones once composite content hopefully offers a suitable one)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22737 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-28 10:46:20 +00:00
Nick Burch
c5ace69b66 Add a rendition option to only output the body contents, rather than full html, when doing .docx -> .html transformations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 14:40:14 +00:00
Nick Burch
061ed8edf6 Add missing html mimetype to created node for .docx->.html conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22547 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 11:15:09 +00:00
Nick Burch
1311f124b6 Update the Tika-powered .docx -> html converter to re-write the img src urls from embedded ones to repo-expanded ones
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 11:04:14 +00:00
Nick Burch
cb7e60f7a7 Add support for real image extraction to the html document rendering engine, and unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22459 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 14:24:32 +00:00
Nick Burch
4847620d2e More .doc{x} -> html support - basic Tika conversion to HTML now enabled (lacks some of the required elements), image extraction remains stubbed out
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22335 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 13:31:31 +00:00
Nick Burch
c37f8d33df Initial HTML Rendition Engine, which will turn .doc{x} files into .html and images
Currently, just a stub engine, which puts dummy content in for the html and images


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22329 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 12:38:06 +00:00