info.aduna.autofocus.model
Class AFModelController

java.lang.Object
  extended by info.aduna.autofocus.model.AFModelController

public class AFModelController
extends Object

AFModelController contains methods for changing the contents of the AFModel it manages. Since these methods update the model and send events about it, all methods should be invoked from the AWT event dispatch thread, using SwingUtilities.invokeLater. Therefore, each method that (potentially) changes the model will throw an IllegalStateException when not run from this thread.


Constructor Summary
AFModelController(InfoSourceManager infoSourceManager)
           
 
Method Summary
 void clearQueryResults()
           
 void evaluate(String queryString, Collection<String> repositories, String resultName, FacetInfo facet)
           
 Item getItem(String id, org.openrdf.repository.Repository repository)
           
 Collection<Item> getItems(ItemSelector selector)
           
 AFModel getModel()
           
 HashMap<String,RepositoryWrapper> getRepositories(boolean skipSystemRepository)
           
 void reevaluateQueryResults()
          Can be invoked when the index has changed and the existing results are no longer reliable.
 void removeQueryResult(QueryResult result)
           
 void removeQueryResults(Collection<QueryResult> results)
           
 void removeRepository(String id)
          Removes the configuration of the Repository with the specified ID from the SystemRepository.
 void setSelectedItems(Item[] items)
           
 void setSelectedResults(Set<QueryResult> results)
           
 void setVisibleItems()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFModelController

public AFModelController(InfoSourceManager infoSourceManager)
                  throws IOException
Throws:
IOException
Method Detail

getModel

public AFModel getModel()

getRepositories

public HashMap<String,RepositoryWrapper> getRepositories(boolean skipSystemRepository)

removeRepository

public void removeRepository(String id)
                      throws org.openrdf.repository.RepositoryException,
                             org.openrdf.repository.config.RepositoryConfigException,
                             IOException
Removes the configuration of the Repository with the specified ID from the SystemRepository.

Throws:
org.openrdf.repository.RepositoryException - Whenever access to the SystemRepository throws a RepositoryException.
org.openrdf.repository.config.RepositoryConfigException
IOException

removeQueryResult

public void removeQueryResult(QueryResult result)

removeQueryResults

public void removeQueryResults(Collection<QueryResult> results)

clearQueryResults

public void clearQueryResults()

setSelectedItems

public void setSelectedItems(Item[] items)

setVisibleItems

public void setVisibleItems()

setSelectedResults

public void setSelectedResults(Set<QueryResult> results)

getItems

public Collection<Item> getItems(ItemSelector selector)

getItem

public Item getItem(String id,
                    org.openrdf.repository.Repository repository)

evaluate

public void evaluate(String queryString,
                     Collection<String> repositories,
                     String resultName,
                     FacetInfo facet)

reevaluateQueryResults

public void reevaluateQueryResults()
Can be invoked when the index has changed and the existing results are no longer reliable.



Copyright © 1997-2008 Aduna. All Rights Reserved.