Script specific Node class renamed to ScriptNode.

SVN rename command used to ensure file history is kept.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-06-12 15:10:48 +00:00
parent a73f5b12c6
commit 21b9367f7f
2 changed files with 12 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
import javax.servlet.http.HttpServletResponse;
import org.alfresco.repo.jscript.Node;
import org.alfresco.repo.jscript.ScriptNode;
import org.alfresco.repo.jscript.ScriptableHashMap;
import org.alfresco.repo.template.AbsoluteUrlMethod;
import org.alfresco.service.ServiceRegistry;
@@ -223,13 +223,13 @@ public abstract class AbstractWebScript implements WebScript
NodeRef companyHome = scriptContext.getCompanyHome();
if (companyHome != null)
{
model.put("companyhome", new Node(scriptContext.getCompanyHome(), serviceRegistry));
model.put("companyhome", new ScriptNode(scriptContext.getCompanyHome(), serviceRegistry));
}
NodeRef person = scriptContext.getPerson();
if (person != null)
{
model.put("person", new Node(person, serviceRegistry));
model.put("userhome", new Node(scriptContext.getUserHome(person), serviceRegistry));
model.put("person", new ScriptNode(person, serviceRegistry));
model.put("userhome", new ScriptNode(scriptContext.getUserHome(person), serviceRegistry));
}
}