VIVO-82 Tweak the uses of ModelAccess to keep backward compatibility.
Even if it appears to the untrained eye that the models are being misused.
This commit is contained in:
parent
749e667e6a
commit
c086a595e1
2 changed files with 5 additions and 3 deletions
|
@ -175,12 +175,14 @@ public class VitroRequest extends HttpServletRequestWrapper {
|
|||
return ModelAccess.on(this).getJenaOntModel();
|
||||
}
|
||||
|
||||
/** JB - surprising that this comes from session. */
|
||||
public OntModel getAssertionsOntModel() {
|
||||
return ModelAccess.on(this).getBaseOntModel();
|
||||
return ModelAccess.on(this.getSession()).getBaseOntModel();
|
||||
}
|
||||
|
||||
/** JB - surprising that this comes from session. */
|
||||
public OntModel getInferenceOntModel() {
|
||||
return ModelAccess.on(this).getInferenceOntModel();
|
||||
return ModelAccess.on(this.getSession()).getInferenceOntModel();
|
||||
}
|
||||
|
||||
public OntModel getDisplayModel(){
|
||||
|
|
|
@ -409,7 +409,7 @@ public class DefaultObjectPropertyFormGenerator implements EditConfigurationGene
|
|||
if(isSelectFromExisting(vreq)) {
|
||||
// set ProhibitedFromSearch object so picklist doesn't show
|
||||
// individuals from classes that should be hidden from list views
|
||||
OntModel displayOntModel = ModelAccess.on(session).getDisplayModel();
|
||||
OntModel displayOntModel = ModelAccess.on(session.getServletContext()).getDisplayModel();
|
||||
ProhibitedFromSearch pfs = new ProhibitedFromSearch(
|
||||
DisplayVocabulary.SEARCH_INDEX_URI, displayOntModel);
|
||||
if( editConfig != null )
|
||||
|
|
Loading…
Add table
Reference in a new issue