improvements to blank node handling in bulk deletion
This commit is contained in:
parent
cef7b583e2
commit
b480cb2eea
78 changed files with 5882 additions and 605 deletions
|
@ -26,6 +26,7 @@ public class DataPropertyDaoStub implements DataPropertyDao {
|
|||
// ----------------------------------------------------------------------
|
||||
|
||||
private final Map<String, DataProperty> dpMap = new HashMap<String, DataProperty>();
|
||||
private final Map<String, String> configFilesMap = new HashMap<String, String>();
|
||||
|
||||
public void addDataProperty(DataProperty dataProperty) {
|
||||
if (dataProperty == null) {
|
||||
|
@ -40,6 +41,18 @@ public class DataPropertyDaoStub implements DataPropertyDao {
|
|||
dpMap.put(uri, dataProperty);
|
||||
}
|
||||
|
||||
public void setCustomListViewConfigFileName(DataProperty property, String filename) {
|
||||
if (property == null) {
|
||||
throw new NullPointerException("property may not be null.");
|
||||
}
|
||||
|
||||
String uri = property.getURI();
|
||||
if (uri == null) {
|
||||
throw new NullPointerException("uri may not be null.");
|
||||
}
|
||||
|
||||
configFilesMap.put(uri, filename);
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Stub methods
|
||||
// ----------------------------------------------------------------------
|
||||
|
@ -49,6 +62,17 @@ public class DataPropertyDaoStub implements DataPropertyDao {
|
|||
return dpMap.get(dataPropertyURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCustomListViewConfigFileName(DataProperty dataProperty) {
|
||||
if (dataProperty == null) {
|
||||
return null;
|
||||
}
|
||||
String uri = dataProperty.getURI();
|
||||
if (uri == null) {
|
||||
return null;
|
||||
}
|
||||
return configFilesMap.get(uri);
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Un-implemented methods
|
||||
// ----------------------------------------------------------------------
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package stubs.edu.cornell.mannlib.vitro.webapp.dao;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue