NIHVIVO-2254 Create some serious unit tests for HiddenFromDisplayBelowRoleLevelFilter, and fix the errors that they reveal.

This commit is contained in:
j2blake 2011-03-29 20:31:41 +00:00
parent cb31463bb3
commit c5183dccf1
7 changed files with 1974 additions and 99 deletions

View file

@ -0,0 +1,256 @@
/* $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.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import edu.cornell.mannlib.vitro.webapp.beans.DataProperty;
import edu.cornell.mannlib.vitro.webapp.beans.Individual;
import edu.cornell.mannlib.vitro.webapp.beans.Property;
import edu.cornell.mannlib.vitro.webapp.beans.VClass;
import edu.cornell.mannlib.vitro.webapp.dao.DataPropertyDao;
import edu.cornell.mannlib.vitro.webapp.dao.InsertException;
/**
* A minimal implementation of the DataPropertyDao.
*
* I have only implemented the methods that I needed. Feel free to implement
* others.
*/
public class DataPropertyDaoStub implements DataPropertyDao {
// ----------------------------------------------------------------------
// Stub infrastructure
// ----------------------------------------------------------------------
private final Map<String, DataProperty> dpMap = new HashMap<String, DataProperty>();
public void addDataProperty(DataProperty dataProperty) {
if (dataProperty == null) {
throw new NullPointerException("dataProperty may not be null.");
}
String uri = dataProperty.getURI();
if (uri == null) {
throw new NullPointerException("uri may not be null.");
}
dpMap.put(uri, dataProperty);
}
// ----------------------------------------------------------------------
// Stub methods
// ----------------------------------------------------------------------
@Override
public DataProperty getDataPropertyByURI(String dataPropertyURI) {
return dpMap.get(dataPropertyURI);
}
// ----------------------------------------------------------------------
// Un-implemented methods
// ----------------------------------------------------------------------
@Override
public void addSuperproperty(Property property, Property superproperty) {
throw new RuntimeException(
"PropertyDao.addSuperproperty() not implemented.");
}
@Override
public void addSuperproperty(String propertyURI, String superpropertyURI) {
throw new RuntimeException(
"PropertyDao.addSuperproperty() not implemented.");
}
@Override
public void removeSuperproperty(Property property, Property superproperty) {
throw new RuntimeException(
"PropertyDao.removeSuperproperty() not implemented.");
}
@Override
public void removeSuperproperty(String propertyURI, String superpropertyURI) {
throw new RuntimeException(
"PropertyDao.removeSuperproperty() not implemented.");
}
@Override
public void addSubproperty(Property property, Property subproperty) {
throw new RuntimeException(
"PropertyDao.addSubproperty() not implemented.");
}
@Override
public void addSubproperty(String propertyURI, String subpropertyURI) {
throw new RuntimeException(
"PropertyDao.addSubproperty() not implemented.");
}
@Override
public void removeSubproperty(Property property, Property subproperty) {
throw new RuntimeException(
"PropertyDao.removeSubproperty() not implemented.");
}
@Override
public void removeSubproperty(String propertyURI, String subpropertyURI) {
throw new RuntimeException(
"PropertyDao.removeSubproperty() not implemented.");
}
@Override
public void addEquivalentProperty(String propertyURI,
String equivalentPropertyURI) {
throw new RuntimeException(
"PropertyDao.addEquivalentProperty() not implemented.");
}
@Override
public void addEquivalentProperty(Property property,
Property equivalentProperty) {
throw new RuntimeException(
"PropertyDao.addEquivalentProperty() not implemented.");
}
@Override
public void removeEquivalentProperty(String propertyURI,
String equivalentPropertyURI) {
throw new RuntimeException(
"PropertyDao.removeEquivalentProperty() not implemented.");
}
@Override
public void removeEquivalentProperty(Property property,
Property equivalentProperty) {
throw new RuntimeException(
"PropertyDao.removeEquivalentProperty() not implemented.");
}
@Override
public List<String> getSubPropertyURIs(String propertyURI) {
throw new RuntimeException(
"PropertyDao.getSubPropertyURIs() not implemented.");
}
@Override
public List<String> getAllSubPropertyURIs(String propertyURI) {
throw new RuntimeException(
"PropertyDao.getAllSubPropertyURIs() not implemented.");
}
@Override
public List<String> getSuperPropertyURIs(String propertyURI, boolean direct) {
throw new RuntimeException(
"PropertyDao.getSuperPropertyURIs() not implemented.");
}
@Override
public List<String> getAllSuperPropertyURIs(String propertyURI) {
throw new RuntimeException(
"PropertyDao.getAllSuperPropertyURIs() not implemented.");
}
@Override
public List<String> getEquivalentPropertyURIs(String propertyURI) {
throw new RuntimeException(
"PropertyDao.getEquivalentPropertyURIs() not implemented.");
}
@Override
public List<VClass> getClassesWithRestrictionOnProperty(String propertyURI) {
throw new RuntimeException(
"PropertyDao.getClassesWithRestrictionOnProperty() not implemented.");
}
@Override
public List getAllDataProperties() {
throw new RuntimeException(
"DataPropertyDao.getAllDataProperties() not implemented.");
}
@Override
public List getAllExternalIdDataProperties() {
throw new RuntimeException(
"DataPropertyDao.getAllExternalIdDataProperties() not implemented.");
}
@Override
public void fillDataPropertiesForIndividual(Individual individual) {
throw new RuntimeException(
"DataPropertyDao.fillDataPropertiesForIndividual() not implemented.");
}
@Override
public List<DataProperty> getDataPropertiesForVClass(String vClassURI) {
throw new RuntimeException(
"DataPropertyDao.getDataPropertiesForVClass() not implemented.");
}
@Override
public Collection<DataProperty> getAllPossibleDatapropsForIndividual(
String individualURI) {
throw new RuntimeException(
"DataPropertyDao.getAllPossibleDatapropsForIndividual() not implemented.");
}
@Override
public String getRequiredDatatypeURI(Individual individual,
DataProperty dataProperty) {
throw new RuntimeException(
"DataPropertyDao.getRequiredDatatypeURI() not implemented.");
}
@Override
public String insertDataProperty(DataProperty dataProperty)
throws InsertException {
throw new RuntimeException(
"DataPropertyDao.insertDataProperty() not implemented.");
}
@Override
public void updateDataProperty(DataProperty dataProperty) {
throw new RuntimeException(
"DataPropertyDao.updateDataProperty() not implemented.");
}
@Override
public void deleteDataProperty(DataProperty dataProperty) {
throw new RuntimeException(
"DataPropertyDao.deleteDataProperty() not implemented.");
}
@Override
public void deleteDataProperty(String dataPropertyURI) {
throw new RuntimeException(
"DataPropertyDao.deleteDataProperty() not implemented.");
}
@Override
public List<DataProperty> getRootDataProperties() {
throw new RuntimeException(
"DataPropertyDao.getRootDataProperties() not implemented.");
}
@Override
public boolean annotateDataPropertyAsExternalIdentifier(
String dataPropertyURI) {
throw new RuntimeException(
"DataPropertyDao.annotateDataPropertyAsExternalIdentifier() not implemented.");
}
@Override
public List<DataProperty> getDataPropertyList(Individual subject) {
throw new RuntimeException(
"DataPropertyDao.getDataPropertyList() not implemented.");
}
@Override
public List<DataProperty> getDataPropertyList(String subjectUri) {
throw new RuntimeException(
"DataPropertyDao.getDataPropertyList() not implemented.");
}
}

View file

@ -0,0 +1,245 @@
package stubs.edu.cornell.mannlib.vitro.webapp.dao;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import edu.cornell.mannlib.vitro.webapp.beans.DataPropertyStatement;
import edu.cornell.mannlib.vitro.webapp.beans.Individual;
import edu.cornell.mannlib.vitro.webapp.beans.Keyword;
import edu.cornell.mannlib.vitro.webapp.beans.VClass;
import edu.cornell.mannlib.vitro.webapp.dao.IndividualDao;
import edu.cornell.mannlib.vitro.webapp.dao.InsertException;
/**
* A minimal implementation of the IndividualDao.
*
* I have only implemented the methods that I needed. Feel free to implement
* others.
*/
public class IndividualDaoStub implements IndividualDao {
// ----------------------------------------------------------------------
// Stub infrastructure
// ----------------------------------------------------------------------
private final Map<String, Individual> indMap = new HashMap<String, Individual>();
public void addIndividual(Individual individual) {
if (individual == null) {
throw new NullPointerException("individual may not be null.");
}
String uri = individual.getURI();
if (uri == null) {
throw new NullPointerException("uri may not be null.");
}
indMap.put(uri, individual);
}
// ----------------------------------------------------------------------
// Stub methods
// ----------------------------------------------------------------------
@Override
public Individual getIndividualByURI(String individualURI) {
return indMap.get(individualURI);
}
// ----------------------------------------------------------------------
// Un-implemented methods
// ----------------------------------------------------------------------
@Override
public Collection<DataPropertyStatement> getExternalIds(String individualURI) {
throw new RuntimeException(
"IndividualDaoStub.getExternalIds() not implemented.");
}
@Override
public Collection<DataPropertyStatement> getExternalIds(
String individualURI, String dataPropertyURI) {
throw new RuntimeException(
"IndividualDaoStub.getExternalIds() not implemented.");
}
@Override
public void addVClass(String individualURI, String vclassURI) {
throw new RuntimeException(
"IndividualDaoStub.addVClass() not implemented.");
}
@Override
public void removeVClass(String individualURI, String vclassURI) {
throw new RuntimeException(
"IndividualDaoStub.removeVClass() not implemented.");
}
@Override
public List<Individual> getIndividualsByVClass(VClass vclass) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualsByVClass() not implemented.");
}
@Override
public List<Individual> getIndividualsByVClassURI(String vclassURI) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualsByVClassURI() not implemented.");
}
@Override
public List<Individual> getIndividualsByVClassURI(String vclassURI,
int offset, int quantity) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualsByVClassURI() not implemented.");
}
@Override
public String insertNewIndividual(Individual individual)
throws InsertException {
throw new RuntimeException(
"IndividualDaoStub.insertNewIndividual() not implemented.");
}
@Override
public int updateIndividual(Individual individual) {
throw new RuntimeException(
"IndividualDaoStub.updateIndividual() not implemented.");
}
@Override
public int deleteIndividual(String individualURI) {
throw new RuntimeException(
"IndividualDaoStub.deleteIndividual() not implemented.");
}
@Override
public int deleteIndividual(Individual individual) {
throw new RuntimeException(
"IndividualDaoStub.deleteIndividual() not implemented.");
}
@Override
public void markModified(Individual individual) {
throw new RuntimeException(
"IndividualDaoStub.markModified() not implemented.");
}
@Override
public Iterator<Individual> getAllOfThisTypeIterator() {
throw new RuntimeException(
"IndividualDaoStub.getAllOfThisTypeIterator() not implemented.");
}
@Override
public Iterator<Individual> getAllOfThisVClassIterator(String vClassURI) {
throw new RuntimeException(
"IndividualDaoStub.getAllOfThisVClassIterator() not implemented.");
}
@Override
public Iterator<Individual> getUpdatedSinceIterator(long updatedSince) {
throw new RuntimeException(
"IndividualDaoStub.getUpdatedSinceIterator() not implemented.");
}
@Override
public int getCountOfIndividualsInVClass(String vclassURI) {
throw new RuntimeException(
"IndividualDaoStub.getCountOfIndividualsInVClass() not implemented.");
}
@Override
public boolean isIndividualOfClass(String vclassURI, String indURI) {
throw new RuntimeException(
"IndividualDaoStub.isIndividualOfClass() not implemented.");
}
@Override
public List<Individual> getIndividualsByDataProperty(
String dataPropertyUri, String value) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualsByDataProperty() not implemented.");
}
@Override
public List<Individual> getIndividualsByDataProperty(
String dataPropertyUri, String value, String datatypeUri,
String lang) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualsByDataProperty() not implemented.");
}
@Override
public void fillVClassForIndividual(Individual individual) {
throw new RuntimeException(
"IndividualDaoStub.fillVClassForIndividual() not implemented.");
}
@Override
public List<String> monikers(String vclassURI) {
throw new RuntimeException(
"IndividualDaoStub.monikers() not implemented.");
}
@Override
public List<String> getKeywordsForIndividual(String individualURI) {
throw new RuntimeException(
"IndividualDaoStub.getKeywordsForIndividual() not implemented.");
}
@Override
public List<String> getKeywordsForIndividualByMode(String individualURI,
String modeStr) {
throw new RuntimeException(
"IndividualDaoStub.getKeywordsForIndividualByMode() not implemented.");
}
@Override
public List<Keyword> getKeywordObjectsForIndividual(String individualURI) {
throw new RuntimeException(
"IndividualDaoStub.getKeywordObjectsForIndividual() not implemented.");
}
@Override
public String getIndividualURIFromNetId(String netIdStr,
String netidMatchingPropertyUri) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualURIFromNetId() not implemented.");
}
@Override
public String getNetId(String entityURI) {
throw new RuntimeException(
"IndividualDaoStub.getNetId() not implemented.");
}
@Override
public String getStatus(String entityURI) {
throw new RuntimeException(
"IndividualDaoStub.getStatus() not implemented.");
}
@Override
public String getUnusedURI(Individual individual) throws InsertException {
throw new RuntimeException(
"IndividualDaoStub.getUnusedURI() not implemented.");
}
@Override
public Individual getIndividualByExternalId(int externalIdType,
String externalIdValue) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualByExternalId() not implemented.");
}
@Override
public Individual getIndividualByExternalId(int externalIdType,
String externalIdValue, String vClassURI) {
throw new RuntimeException(
"IndividualDaoStub.getIndividualByExternalId() not implemented.");
}
}

View file

@ -0,0 +1,248 @@
package stubs.edu.cornell.mannlib.vitro.webapp.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import edu.cornell.mannlib.vitro.webapp.beans.Individual;
import edu.cornell.mannlib.vitro.webapp.beans.ObjectProperty;
import edu.cornell.mannlib.vitro.webapp.beans.ObjectPropertyStatement;
import edu.cornell.mannlib.vitro.webapp.beans.Property;
import edu.cornell.mannlib.vitro.webapp.beans.VClass;
import edu.cornell.mannlib.vitro.webapp.dao.InsertException;
import edu.cornell.mannlib.vitro.webapp.dao.ObjectPropertyDao;
/**
* A minimal implementation of the ObjectPropertyDao.
*
* I have only implemented the methods that I needed. Feel free to implement
* others.
*/
public class ObjectPropertyDaoStub implements ObjectPropertyDao {
// ----------------------------------------------------------------------
// Stub infrastructure
// ----------------------------------------------------------------------
private final Map<String, ObjectProperty> opMap = new HashMap<String, ObjectProperty>();
public void addObjectProperty(ObjectProperty predicate) {
if (predicate == null) {
throw new NullPointerException("predicate may not be null.");
}
String uri = predicate.getURI();
if (uri == null) {
throw new NullPointerException("uri may not be null.");
}
opMap.put(uri, predicate);
}
// ----------------------------------------------------------------------
// Stub methods
// ----------------------------------------------------------------------
@Override
public ObjectProperty getObjectPropertyByURI(String objectPropertyURI) {
return opMap.get(objectPropertyURI);
}
// ----------------------------------------------------------------------
// Un-implemented methods
// ----------------------------------------------------------------------
@Override
public void addSuperproperty(Property property, Property superproperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addSuperproperty() not implemented.");
}
@Override
public void addSuperproperty(String propertyURI, String superpropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addSuperproperty() not implemented.");
}
@Override
public void removeSuperproperty(Property property, Property superproperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeSuperproperty() not implemented.");
}
@Override
public void removeSuperproperty(String propertyURI, String superpropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeSuperproperty() not implemented.");
}
@Override
public void addSubproperty(Property property, Property subproperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addSubproperty() not implemented.");
}
@Override
public void addSubproperty(String propertyURI, String subpropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addSubproperty() not implemented.");
}
@Override
public void removeSubproperty(Property property, Property subproperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeSubproperty() not implemented.");
}
@Override
public void removeSubproperty(String propertyURI, String subpropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeSubproperty() not implemented.");
}
@Override
public void addEquivalentProperty(String propertyURI,
String equivalentPropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addEquivalentProperty() not implemented.");
}
@Override
public void addEquivalentProperty(Property property,
Property equivalentProperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.addEquivalentProperty() not implemented.");
}
@Override
public void removeEquivalentProperty(String propertyURI,
String equivalentPropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeEquivalentProperty() not implemented.");
}
@Override
public void removeEquivalentProperty(Property property,
Property equivalentProperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.removeEquivalentProperty() not implemented.");
}
@Override
public List<String> getAllSubPropertyURIs(String propertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getAllSubPropertyURIs() not implemented.");
}
@Override
public List<String> getAllSuperPropertyURIs(String propertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getAllSuperPropertyURIs() not implemented.");
}
@Override
public List<String> getEquivalentPropertyURIs(String propertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getEquivalentPropertyURIs() not implemented.");
}
@Override
public List<VClass> getClassesWithRestrictionOnProperty(String propertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getClassesWithRestrictionOnProperty() not implemented.");
}
@Override
public List<ObjectProperty> getAllObjectProperties() {
throw new RuntimeException(
"ObjectPropertyDaoStub.getAllObjectProperties() not implemented.");
}
@Override
public List<ObjectProperty> getObjectPropertiesForObjectPropertyStatements(
List objectPropertyStatements) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getObjectPropertiesForObjectPropertyStatements() not implemented.");
}
@Override
public List<String> getSuperPropertyURIs(String objectPropertyURI,
boolean direct) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getSuperPropertyURIs() not implemented.");
}
@Override
public List<String> getSubPropertyURIs(String objectPropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getSubPropertyURIs() not implemented.");
}
@Override
public List<ObjectPropertyStatement> getStatementsUsingObjectProperty(
ObjectProperty op) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getStatementsUsingObjectProperty() not implemented.");
}
@Override
public void fillObjectPropertiesForIndividual(Individual individual) {
throw new RuntimeException(
"ObjectPropertyDaoStub.fillObjectPropertiesForIndividual() not implemented.");
}
@Override
public int insertObjectProperty(ObjectProperty objectProperty)
throws InsertException {
throw new RuntimeException(
"ObjectPropertyDaoStub.insertObjectProperty() not implemented.");
}
@Override
public void updateObjectProperty(ObjectProperty objectProperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.updateObjectProperty() not implemented.");
}
@Override
public void deleteObjectProperty(String objectPropertyURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.deleteObjectProperty() not implemented.");
}
@Override
public void deleteObjectProperty(ObjectProperty objectProperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.deleteObjectProperty() not implemented.");
}
@Override
public boolean skipEditForm(String predicateURI) {
throw new RuntimeException(
"ObjectPropertyDaoStub.skipEditForm() not implemented.");
}
@Override
public List<ObjectProperty> getRootObjectProperties() {
throw new RuntimeException(
"ObjectPropertyDaoStub.getRootObjectProperties() not implemented.");
}
@Override
public List<ObjectProperty> getObjectPropertyList(Individual subject) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getObjectPropertyList() not implemented.");
}
@Override
public List<ObjectProperty> getObjectPropertyList(String subjectUri) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getObjectPropertyList() not implemented.");
}
@Override
public String getCustomListViewConfigFileName(ObjectProperty objectProperty) {
throw new RuntimeException(
"ObjectPropertyDaoStub.getCustomListViewConfigFileName() not implemented.");
}
}

View file

@ -0,0 +1,297 @@
/* $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.List;
import java.util.Map;
import java.util.Set;
import edu.cornell.mannlib.vitro.webapp.dao.ApplicationDao;
import edu.cornell.mannlib.vitro.webapp.dao.Classes2ClassesDao;
import edu.cornell.mannlib.vitro.webapp.dao.DataPropertyDao;
import edu.cornell.mannlib.vitro.webapp.dao.DataPropertyStatementDao;
import edu.cornell.mannlib.vitro.webapp.dao.DatatypeDao;
import edu.cornell.mannlib.vitro.webapp.dao.DisplayModelDao;
import edu.cornell.mannlib.vitro.webapp.dao.FlagDao;
import edu.cornell.mannlib.vitro.webapp.dao.IndividualDao;
import edu.cornell.mannlib.vitro.webapp.dao.KeywordDao;
import edu.cornell.mannlib.vitro.webapp.dao.KeywordIndividualRelationDao;
import edu.cornell.mannlib.vitro.webapp.dao.LinksDao;
import edu.cornell.mannlib.vitro.webapp.dao.LinktypeDao;
import edu.cornell.mannlib.vitro.webapp.dao.MenuDao;
import edu.cornell.mannlib.vitro.webapp.dao.NamespaceDao;
import edu.cornell.mannlib.vitro.webapp.dao.ObjectPropertyDao;
import edu.cornell.mannlib.vitro.webapp.dao.ObjectPropertyStatementDao;
import edu.cornell.mannlib.vitro.webapp.dao.OntologyDao;
import edu.cornell.mannlib.vitro.webapp.dao.PageDao;
import edu.cornell.mannlib.vitro.webapp.dao.PortalDao;
import edu.cornell.mannlib.vitro.webapp.dao.PropertyGroupDao;
import edu.cornell.mannlib.vitro.webapp.dao.PropertyInstanceDao;
import edu.cornell.mannlib.vitro.webapp.dao.TabDao;
import edu.cornell.mannlib.vitro.webapp.dao.TabIndividualRelationDao;
import edu.cornell.mannlib.vitro.webapp.dao.TabVClassRelationDao;
import edu.cornell.mannlib.vitro.webapp.dao.UserDao;
import edu.cornell.mannlib.vitro.webapp.dao.VClassDao;
import edu.cornell.mannlib.vitro.webapp.dao.VClassGroupDao;
import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory;
/**
* A minimal implementation of the WebappDaoFactory.
*
* I have only implemented the methods that I needed. Feel free to implement
* others.
*/
public class WebappDaoFactoryStub implements WebappDaoFactory {
// ----------------------------------------------------------------------
// Stub infrastructure
// ----------------------------------------------------------------------
private IndividualDao individualDao;
private DataPropertyDao dataPropertyDao;
private ObjectPropertyDao objectPropertyDao;
public void setIndividualDao(IndividualDao individualDao) {
this.individualDao = individualDao;
}
public void setDataPropertyDao(DataPropertyDao dataPropertyDao) {
this.dataPropertyDao = dataPropertyDao;
}
public void setObjectPropertyDao(ObjectPropertyDao objectPropertyDao) {
this.objectPropertyDao = objectPropertyDao;
}
// ----------------------------------------------------------------------
// Stub methods
// ----------------------------------------------------------------------
@Override
public IndividualDao getIndividualDao() {
return this.individualDao;
}
@Override
public DataPropertyDao getDataPropertyDao() {
return this.dataPropertyDao;
}
@Override
public ObjectPropertyDao getObjectPropertyDao() {
return this.objectPropertyDao;
}
// ----------------------------------------------------------------------
// Un-implemented methods
// ----------------------------------------------------------------------
@Override
public Map<String, String> getProperties() {
throw new RuntimeException(
"WebappDaoFactory.getProperties() not implemented.");
}
@Override
public String checkURI(String uriStr) {
throw new RuntimeException(
"WebappDaoFactory.checkURI() not implemented.");
}
@Override
public String checkURI(String uriStr, boolean checkUniqueness) {
throw new RuntimeException(
"WebappDaoFactory.checkURI() not implemented.");
}
@Override
public int getLanguageProfile() {
throw new RuntimeException(
"WebappDaoFactory.getLanguageProfile() not implemented.");
}
@Override
public String getDefaultNamespace() {
throw new RuntimeException(
"WebappDaoFactory.getDefaultNamespace() not implemented.");
}
@Override
public Set<String> getNonuserNamespaces() {
throw new RuntimeException(
"WebappDaoFactory.getNonuserNamespaces() not implemented.");
}
@Override
public String[] getPreferredLanguages() {
throw new RuntimeException(
"WebappDaoFactory.getPreferredLanguages() not implemented.");
}
@Override
public List<String> getCommentsForResource(String resourceURI) {
throw new RuntimeException(
"WebappDaoFactory.getCommentsForResource() not implemented.");
}
@Override
public WebappDaoFactory getUserAwareDaoFactory(String userURI) {
throw new RuntimeException(
"WebappDaoFactory.getUserAwareDaoFactory() not implemented.");
}
@Override
public String getUserURI() {
throw new RuntimeException(
"WebappDaoFactory.getUserURI() not implemented.");
}
@Override
public Classes2ClassesDao getClasses2ClassesDao() {
throw new RuntimeException(
"WebappDaoFactory.getClasses2ClassesDao() not implemented.");
}
@Override
public DatatypeDao getDatatypeDao() {
throw new RuntimeException(
"WebappDaoFactory.getDatatypeDao() not implemented.");
}
@Override
public OntologyDao getOntologyDao() {
throw new RuntimeException(
"WebappDaoFactory.getOntologyDao() not implemented.");
}
@Override
public VClassDao getVClassDao() {
throw new RuntimeException(
"WebappDaoFactory.getVClassDao() not implemented.");
}
@Override
public DataPropertyStatementDao getDataPropertyStatementDao() {
throw new RuntimeException(
"WebappDaoFactory.getDataPropertyStatementDao() not implemented.");
}
@Override
public ObjectPropertyStatementDao getObjectPropertyStatementDao() {
throw new RuntimeException(
"WebappDaoFactory.getObjectPropertyStatementDao() not implemented.");
}
@Override
public DisplayModelDao getDisplayModelDao() {
throw new RuntimeException(
"WebappDaoFactory.getDisplayModelDao() not implemented.");
}
@Override
public ApplicationDao getApplicationDao() {
throw new RuntimeException(
"WebappDaoFactory.getApplicationDao() not implemented.");
}
@Override
public PortalDao getPortalDao() {
throw new RuntimeException(
"WebappDaoFactory.getPortalDao() not implemented.");
}
@Override
public TabDao getTabDao() {
throw new RuntimeException(
"WebappDaoFactory.getTabDao() not implemented.");
}
@Override
public TabIndividualRelationDao getTabs2EntsDao() {
throw new RuntimeException(
"WebappDaoFactory.getTabs2EntsDao() not implemented.");
}
@Override
public TabVClassRelationDao getTabs2TypesDao() {
throw new RuntimeException(
"WebappDaoFactory.getTabs2TypesDao() not implemented.");
}
@Override
public KeywordIndividualRelationDao getKeys2EntsDao() {
throw new RuntimeException(
"WebappDaoFactory.getKeys2EntsDao() not implemented.");
}
@Override
public KeywordDao getKeywordDao() {
throw new RuntimeException(
"WebappDaoFactory.getKeywordDao() not implemented.");
}
@Override
public LinksDao getLinksDao() {
throw new RuntimeException(
"WebappDaoFactory.getLinksDao() not implemented.");
}
@Override
public LinktypeDao getLinktypeDao() {
throw new RuntimeException(
"WebappDaoFactory.getLinktypeDao() not implemented.");
}
@Override
public FlagDao getFlagDao() {
throw new RuntimeException(
"WebappDaoFactory.getFlagDao() not implemented.");
}
@Override
public UserDao getUserDao() {
throw new RuntimeException(
"WebappDaoFactory.getUserDao() not implemented.");
}
@Override
public VClassGroupDao getVClassGroupDao() {
throw new RuntimeException(
"WebappDaoFactory.getVClassGroupDao() not implemented.");
}
@Override
public PropertyGroupDao getPropertyGroupDao() {
throw new RuntimeException(
"WebappDaoFactory.getPropertyGroupDao() not implemented.");
}
@Override
public NamespaceDao getNamespaceDao() {
throw new RuntimeException(
"WebappDaoFactory.getNamespaceDao() not implemented.");
}
@Override
public PropertyInstanceDao getPropertyInstanceDao() {
throw new RuntimeException(
"WebappDaoFactory.getPropertyInstanceDao() not implemented.");
}
@Override
public PageDao getPageDao() {
throw new RuntimeException(
"WebappDaoFactory.getPageDao() not implemented.");
}
@Override
public MenuDao getMenuDao() {
throw new RuntimeException(
"WebappDaoFactory.getMenuDao() not implemented.");
}
@Override
public void close() {
throw new RuntimeException("WebappDaoFactory.close() not implemented.");
}
}