root and userroot are retrieved with propert dbmappings, added skin cache
This commit is contained in:
parent
f49b5eb157
commit
7dbabcb18c
1 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,7 @@ import helma.objectmodel.*;
|
||||||
import helma.objectmodel.db.NodeManager;
|
import helma.objectmodel.db.NodeManager;
|
||||||
import helma.objectmodel.db.WrappedNodeManager;
|
import helma.objectmodel.db.WrappedNodeManager;
|
||||||
import helma.xmlrpc.*;
|
import helma.xmlrpc.*;
|
||||||
|
import helma.util.CacheMap;
|
||||||
import FESI.Data.*;
|
import FESI.Data.*;
|
||||||
import FESI.Interpreter.*;
|
import FESI.Interpreter.*;
|
||||||
import com.sleepycat.db.DbException;
|
import com.sleepycat.db.DbException;
|
||||||
|
@ -58,6 +59,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
|
|
||||||
private DbMapping rootMapping, userRootMapping, userMapping;
|
private DbMapping rootMapping, userRootMapping, userMapping;
|
||||||
|
|
||||||
|
protected CacheMap skincache = new CacheMap (100);
|
||||||
|
|
||||||
|
|
||||||
public Application () throws RemoteException {
|
public Application () throws RemoteException {
|
||||||
super ();
|
super ();
|
||||||
|
@ -246,13 +249,13 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
}
|
}
|
||||||
|
|
||||||
public INode getDataRoot () {
|
public INode getDataRoot () {
|
||||||
INode root = nmgr.safe.getNode ("0", null);
|
INode root = nmgr.safe.getNode ("0", rootMapping);
|
||||||
root.setDbMapping (rootMapping);
|
root.setDbMapping (rootMapping);
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
public INode getUserRoot () {
|
public INode getUserRoot () {
|
||||||
INode users = nmgr.safe.getNode ("1", null);
|
INode users = nmgr.safe.getNode ("1", userRootMapping);
|
||||||
users.setDbMapping (userRootMapping);
|
users.setDbMapping (userRootMapping);
|
||||||
return users;
|
return users;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue