. 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:
Kevin Roast
2006-05-08 14:55:05 +00:00
parent a5fbb8f7e2
commit cc2264ee41

View File

@@ -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);