mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -141,18 +141,18 @@ public class RenditionServiceImpl implements RenditionService, RenditionDefiniti
|
||||
* org.alfresco.service.cmr.rendition.RenditionService#createRenditionDefinition
|
||||
* (org.alfresco.service.namespace.QName, java.lang.String)
|
||||
*/
|
||||
public RenditionDefinition createRenditionDefinition(QName renderingActionName, String actionDefinitionName)
|
||||
public RenditionDefinition createRenditionDefinition(QName renditionDefinitionName, String renderingEngineName)
|
||||
{
|
||||
if (log.isDebugEnabled())
|
||||
{
|
||||
StringBuilder msg = new StringBuilder();
|
||||
msg.append("Creating rendition definition ")
|
||||
.append(renderingActionName)
|
||||
.append(renditionDefinitionName)
|
||||
.append(" ")
|
||||
.append(actionDefinitionName);
|
||||
.append(renderingEngineName);
|
||||
log.debug(msg.toString());
|
||||
}
|
||||
return new RenditionDefinitionImpl(GUID.generate(), renderingActionName, actionDefinitionName);
|
||||
return new RenditionDefinitionImpl(GUID.generate(), renditionDefinitionName, renderingEngineName);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -238,9 +238,9 @@ public class RenditionServiceImpl implements RenditionService, RenditionDefiniti
|
||||
* org.alfresco.service.cmr.rendition.RenditionService#loadRenderingAction
|
||||
* (org.alfresco.service.namespace.QName)
|
||||
*/
|
||||
public RenditionDefinition loadRenditionDefinition(QName renderingActionName)
|
||||
public RenditionDefinition loadRenditionDefinition(QName renditionDefinitionName)
|
||||
{
|
||||
return this.renditionDefinitionPersister.loadRenditionDefinition(renderingActionName);
|
||||
return this.renditionDefinitionPersister.loadRenditionDefinition(renditionDefinitionName);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user