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
This commit is contained in:
Neil McErlean
2010-03-12 21:28:38 +00:00
parent d60a57af5e
commit 8e9c4f3aa5
12 changed files with 163 additions and 49 deletions

View File

@@ -1672,8 +1672,9 @@ public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
assertEquals("'" + renditionLocalName + "' renditionDefinition had wrong renditionName", renditionQName,
renditionDefinition.getRenditionName());
assertNotNull("'" + renditionLocalName + "' renditionDefinition had null renderingActionName parameter",
renditionDefinition.getParameterValue("renderingActionName"));
assertNotNull("'" + renditionLocalName + "' renditionDefinition had null " +
RenditionDefinitionImpl.RENDITION_DEFINITION_NAME + " parameter",
renditionDefinition.getParameterValue(RenditionDefinitionImpl.RENDITION_DEFINITION_NAME));
// All builtin renditions should be "runas" system
assertEquals(AuthenticationUtil.getSystemUserName(), renditionDefinition.getParameterValue(AbstractRenderingEngine.PARAM_RUN_AS));