protected void load(XMLDatabase db) throws Exception { initUserDb(db); // Set the username OTUser user = refMap.getUser(); OTUserObject aUser = (OTUserObject) user; if (userName != null) { aUser.setName(userName); } otrunk.registerReferenceMap(getReferenceMap()); // just loading the database shouldn't cause it to have changes that need // saving. If the user name was set that would be change. userDataDB.setDirty(false); }
public OTUserObject getUserObject() { return refMap.getUser(); }