This commit is contained in:
hjkhjk54 2011-11-02 14:55:37 +00:00
parent bb6db4ed5b
commit 15c78c74d4
3 changed files with 32 additions and 5 deletions

View file

@ -97,7 +97,8 @@ public class JsonServlet extends VitroHttpServlet {
} }
} }
private void getVClassesForVClassGroup(HttpServletRequest req, HttpServletResponse resp) throws IOException, JSONException {
private void getVClassesForVClassGroup(HttpServletRequest req, HttpServletResponse resp) throws IOException, JSONException {
JSONObject map = new JSONObject(); JSONObject map = new JSONObject();
VitroRequest vreq = new VitroRequest(req); VitroRequest vreq = new VitroRequest(req);
String vcgUri = vreq.getParameter("classgroupUri"); String vcgUri = vreq.getParameter("classgroupUri");

View file

@ -597,10 +597,18 @@ public class WebappDaoFactoryJena implements WebappDaoFactory {
this.nonuserNamespaces = base.nonuserNamespaces; this.nonuserNamespaces = base.nonuserNamespaces;
this.preferredLanguages = base.preferredLanguages; this.preferredLanguages = base.preferredLanguages;
this.userURI = base.userURI; this.userURI = base.userURI;
this.flag2ValueMap = new HashMap<String,OntClass>(); if(base.flag2ValueMap != null) {
this.flag2ValueMap.putAll(base.flag2ValueMap); this.flag2ValueMap = new HashMap<String,OntClass>();
this.flag2ClassLabelMap = new HashMap<Resource, String>(); this.flag2ValueMap.putAll(base.flag2ValueMap);
this.flag2ClassLabelMap.putAll(base.flag2ClassLabelMap); } else {
this.flag2ValueMap = null;
}
if(base.flag2ClassLabelMap != null) {
this.flag2ClassLabelMap = new HashMap<Resource, String>();
this.flag2ClassLabelMap.putAll(base.flag2ClassLabelMap);
} else {
this.flag2ClassLabelMap = null;
}
this.dwf = base.dwf; this.dwf = base.dwf;
} }

View file

@ -0,0 +1,18 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.EditConfiguration;
public abstract class BaseEditSubmissionPreprocessorVTwo implements
EditSubmissionVTwoPreprocessor {
protected EditConfigurationVTwo editConfiguration;
public BaseEditSubmissionPreprocessorVTwo(EditConfigurationVTwo editConfig) {
editConfiguration = editConfig;
}
}