adding some debugging lines

This commit is contained in:
hjkhjk54 2012-03-05 21:40:22 +00:00
parent 8afc9856cf
commit 1183f2d4b7
2 changed files with 4 additions and 1 deletions

View file

@ -178,6 +178,7 @@ public class EditConfigurationUtils {
WebappDaoFactory wdf = vreq.getWebappDaoFactory(); WebappDaoFactory wdf = vreq.getWebappDaoFactory();
ObjectProperty op = wdf.getObjectPropertyDao().getObjectPropertyByURI(predicateUri); ObjectProperty op = wdf.getObjectPropertyDao().getObjectPropertyByURI(predicateUri);
DataProperty dp = wdf.getDataPropertyDao().getDataPropertyByURI(predicateUri); DataProperty dp = wdf.getDataPropertyDao().getDataPropertyByURI(predicateUri);
log.debug("For " + predicateUri + ", object property from dao null? " + (op == null) + " and data property null?" + (dp == null));
return (op != null && dp == null); return (op != null && dp == null);
} }

View file

@ -161,11 +161,13 @@ public class DefaultObjectPropertyFormGenerator implements EditConfigurationGene
//pretends this is a data property editing statement and throws an error //pretends this is a data property editing statement and throws an error
//"object" : [ "objectVar" , "${objectUriJson}" , "URI"], //"object" : [ "objectVar" , "${objectUriJson}" , "URI"],
if(EditConfigurationUtils.isObjectProperty(predicateUri, vreq)) { if(EditConfigurationUtils.isObjectProperty(predicateUri, vreq)) {
log.debug("This is an object property: " + predicateUri);
//not concerned about remainder, can move into default obj prop form if required //not concerned about remainder, can move into default obj prop form if required
this.isObjectPropForm = true; this.isObjectPropForm = true;
this.initObjectParameters(vreq); this.initObjectParameters(vreq);
this.processObjectPropForm(vreq, editConfiguration); this.processObjectPropForm(vreq, editConfiguration);
} else { } else {
log.debug("This is a data property: " + predicateUri);
this.isObjectPropForm = false; this.isObjectPropForm = false;
this.processDataPropForm(vreq, editConfiguration); this.processDataPropForm(vreq, editConfiguration);
} }
@ -187,7 +189,7 @@ public class DefaultObjectPropertyFormGenerator implements EditConfigurationGene
private void processDataPropForm(VitroRequest vreq, EditConfigurationVTwo editConfiguration) { private void processDataPropForm(VitroRequest vreq, EditConfigurationVTwo editConfiguration) {
//bdc34 //bdc34
throw new Error("DefaultObjectPropertyForm should not be doing data property editng"); throw new Error("DefaultObjectPropertyForm should not be doing data property editing");
} }
//Get N3 required //Get N3 required