15 Commits

Author SHA1 Message Date
Brian Remmington
4f9f63ac01 A few minor corrections to XSLT rendering engine code discovered while writing the related wiki page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 08:19:30 +00:00
N Smith
f83eb0d509 Added more unit tests for RenditionNodeManager which is used by the RenditionServiceImpl to decide where to create a rendition node and how to handle the old rendition node if one exists.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19445 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-22 11:05:04 +00:00
Mark Rogers
03d130e99c ALF-2031 - DR and VT can't start
- undeleted and reinstated use of org.alfresco.util.Pair
   - undeleted org.alfresco.util.PropertyCheck which is used in the deployment code.
   - undeleted other org.alfresco.util.* classes which probably should never have been moved to spring surf.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-16 15:05:47 +00:00
Neil McErlean
8e9c4f3aa5 RenditionService JS API.
Support for creating a RenditionDefinition from within JavaScript
Support for executing such an ad hoc rendition definition.
ScriptRendtionService now accepts long-form or short-form QNames where applicable.
Replaced "rendering actions" with "rendition definitions" in some javadoc and some private or local variable names.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19269 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-12 21:28:38 +00:00
N Smith
1bc48d5bb0 Refactored PerformRenditionActionExecutor to pull out RenditionNodeManager class which is responsible for deciding where the new rendition should be placed and putting it there, as well as handling what happens to any existing rendition. This will make this complex logic much easier to test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19231 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-11 16:30:02 +00:00
N Smith
5a2d92ed5d Added Javadoc to various RenditionService parameter constants.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19230 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-11 16:00:13 +00:00
Neil McErlean
a3a95cef81 Refactored RenditionService JS API to use ScriptNodes instead of ChildAssociations.
Consistent with the existing JavaScript APIs.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19207 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 20:16:41 +00:00
Neil McErlean
f26115a739 Added JS API to the RenditionService
new renditionServiceScript bean
    new test method in RenditionServiceIntegrationTest which uses test_renditionservice.js
    ScriptRenditionService is the entry point to the JavaScript API impl
    Can now render a ScriptNode with a Java-saved or built-in RenditionDefinition
    Can get renditions for a source ScriptNode
        get all renditions
        get renditions from rendition definition x, e.g. "cm:doclib"
        get renditions whose mimetype starts with prefix.

Added RenditionService to ServiceRegistry.
    Necessary for the JS API, also desirable for completeness



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 16:06:07 +00:00
N Smith
b2d3946da1 Changed ThumbnailServiceImpl to create renditions of type cm:thumbnail and set the thumbnail name property on them correctly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 12:59:21 +00:00
Brian Remmington
ec4529a360 Added a missing class from the last check in. Sorry.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 08:39:00 +00:00
Brian Remmington
2c9854b53b Refactored XSLTRenderingEngine and TemplatingRenderingEngine (now called FreemarkerRenderingEngine) to extract common elements.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19168 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 21:19:25 +00:00
Brian Remmington
91ba631a3b SAIL-244: Added an XSLT Template Processor (hooked into the template service) along with an XSLT rendering engine that makes use of it.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19153 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 14:02:55 +00:00
Neil McErlean
52dc95264c RenditionService. Reintroduced the spring-based configuration of ThumbnailDefinitions.
Major overhaul to the ThumbnailDefinition - RenditionDefinition conversion code.
Removed the imported rendition definitions acp, replacing it with the original rendering_actions_space xml.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 17:18:40 +00:00
Neil McErlean
ef6595c3de Fixed bug in test code that was causing test failure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-07 14:26:01 +00:00
Neil McErlean
bce28a5599 Merging DEV_TEMPORARY to HEAD (RenditionService)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19103 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-05 20:02:52 +00:00