root and userroot are retrieved with propert dbmappings, added skin cache

This commit is contained in:
hns 2001-01-18 18:12:04 +00:00
parent f49b5eb157
commit 7dbabcb18c

View file

@ -13,6 +13,7 @@ import helma.objectmodel.*;
import helma.objectmodel.db.NodeManager;
import helma.objectmodel.db.WrappedNodeManager;
import helma.xmlrpc.*;
import helma.util.CacheMap;
import FESI.Data.*;
import FESI.Interpreter.*;
import com.sleepycat.db.DbException;
@ -58,6 +59,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
private DbMapping rootMapping, userRootMapping, userMapping;
protected CacheMap skincache = new CacheMap (100);
public Application () throws RemoteException {
super ();
@ -246,13 +249,13 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
}
public INode getDataRoot () {
INode root = nmgr.safe.getNode ("0", null);
INode root = nmgr.safe.getNode ("0", rootMapping);
root.setDbMapping (rootMapping);
return root;
}
public INode getUserRoot () {
INode users = nmgr.safe.getNode ("1", null);
INode users = nmgr.safe.getNode ("1", userRootMapping);
users.setDbMapping (userRootMapping);
return users;
}