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.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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue