Class AdditionalURIsForClassGroupChanges
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForClassGroupChanges
-
- All Implemented Interfaces:
IndexingUriFinder,ContextModelsUser
public class AdditionalURIsForClassGroupChanges extends Object implements IndexingUriFinder, ContextModelsUser
If a class changes classgroups, then all members of that class will have to be update in the search since the serach include the clasgroup membership of all individuals. Ex. when a statement like: sub='http://vivoweb.org/ontology/core#Summer' pred='http://vitro.mannlib.cornell.edu/ns/vitro/0.7#inClassGroup' obj='http://vivoweb.org/ontology#vitroClassGrouppeople' changes, all members of the class core:Summer need to be update so they get the new classgroup values.
-
-
Constructor Summary
Constructors Constructor Description AdditionalURIsForClassGroupChanges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendIndexing()Indicates that the collection of statements being processed is complete.List<String>findAdditionalURIsToIndex(org.apache.jena.rdf.model.Statement stmt)For the domain that is the responsibility of the given implementation, calculate the URIs that need to be updated in the search index.voidsetContextModels(ContextModelAccess models)voidstartIndexing()Indicates that a new collection of statements is about to be processed.StringtoString()
-
-
-
Method Detail
-
setContextModels
public void setContextModels(ContextModelAccess models)
- Specified by:
setContextModelsin interfaceContextModelsUser
-
findAdditionalURIsToIndex
public List<String> findAdditionalURIsToIndex(org.apache.jena.rdf.model.Statement stmt)
Description copied from interface:IndexingUriFinderFor the domain that is the responsibility of the given implementation, calculate the URIs that need to be updated in the search index. The URIs in the list will be updated by the IndexBuilder, which will handle URIs of new individuals, URIs of individuals that have changes, and URIs of individuals that have been removed from the model.- Specified by:
findAdditionalURIsToIndexin interfaceIndexingUriFinder- Returns:
- List of URIs. Never return null.
-
startIndexing
public void startIndexing()
Description copied from interface:IndexingUriFinderIndicates that a new collection of statements is about to be processed.- Specified by:
startIndexingin interfaceIndexingUriFinder
-
endIndexing
public void endIndexing()
Description copied from interface:IndexingUriFinderIndicates that the collection of statements being processed is complete.- Specified by:
endIndexingin interfaceIndexingUriFinder
-
-