mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. First pass of the Alfresco JavaScript API wiki docs:
http://wiki.alfresco.com/wiki/JavaScript_API - JavaDoc and minor API updates that made sense as I was writing the documentation :) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.ui.repo.component.template.DefaultModelHelper;
|
||||
|
||||
/**
|
||||
* Execute Script command implementation.
|
||||
@@ -81,7 +82,8 @@ public final class ExecuteScriptCommand implements Command
|
||||
new NodeRef(Repository.getStoreRef(), Application.getCompanyRootId()),
|
||||
(NodeRef)nodeService.getProperty(personRef, ContentModel.PROP_HOMEFOLDER),
|
||||
docRef,
|
||||
nodeService.getPrimaryParent(docRef).getParentRef());
|
||||
nodeService.getPrimaryParent(docRef).getParentRef(),
|
||||
DefaultModelHelper.imageResolver);
|
||||
|
||||
// execute the script and return the result
|
||||
return serviceRegistry.getScriptService().executeScript(scriptRef, null, model);
|
||||
|
Reference in New Issue
Block a user