@Override public ScriptService getScriptService() { return serviceRegistry.getScriptService(); }
@Override public ScriptService getScriptService() { return serviceRegistry.getScriptService(); }
private Object invokeScript(Method method, Object[] args) { // Build the model Map<String, Object> model = new HashMap<String, Object>(1); model.put("behaviour", new org.alfresco.repo.jscript.Behaviour(this.behaviour.serviceRegistry, method.getName(), args)); // Execute the script return this.behaviour.serviceRegistry.getScriptService().executeScript(this.behaviour.location, model); }
private Object invokeScript(Method method, Object[] args) { // Build the model Map<String, Object> model = new HashMap<String, Object>(1); model.put("behaviour", new org.alfresco.repo.jscript.Behaviour(this.behaviour.serviceRegistry, method.getName(), args)); // Execute the script return this.behaviour.serviceRegistry.getScriptService().executeScript(this.behaviour.location, model); }
protected Object executeScript(String theScript, Map<String, Object> model, String scriptProcessorName) { // Execute the script using the appropriate processor Object scriptResult = null; if (scriptProcessorName != null) { scriptResult = getServiceRegistry().getScriptService().executeScriptString(scriptProcessorName, theScript, model); } else { // Use default script-processor scriptResult = getServiceRegistry().getScriptService().executeScriptString(theScript, model); } return scriptResult; }
protected Object executeScript(String theScript, Map<String, Object> model, String scriptProcessorName) { // Execute the script using the appropriate processor Object scriptResult = null; if (scriptProcessorName != null) { scriptResult = getServiceRegistry().getScriptService().executeScriptString(scriptProcessorName, theScript, model); } else { // Use default script-processor scriptResult = getServiceRegistry().getScriptService().executeScriptString(theScript, model); } return scriptResult; }
getServiceRegistry().getScriptService().buildCoreModel(scriptModel);
getServiceRegistry().getScriptService().buildCoreModel(scriptModel);
getServiceRegistry().getScriptService().buildCoreModel(scriptModel);
getServiceRegistry().getScriptService().buildCoreModel(scriptModel);
Map<String, Object> model = this.serviceRegistry.getScriptService().buildDefaultModel( personRef, getCompanyHome(), result = this.serviceRegistry.getScriptService().executeScript( scriptRef, ContentModel.PROP_CONTENT, result = this.serviceRegistry.getScriptService().executeScript(this.scriptLocation, model);
Map<String, Object> model = this.serviceRegistry.getScriptService().buildDefaultModel( personRef, getCompanyHome(), result = this.serviceRegistry.getScriptService().executeScript( scriptRef, ContentModel.PROP_CONTENT, result = this.serviceRegistry.getScriptService().executeScript(this.scriptLocation, model);