au.edu.jcu.hermes.plugin.mcatsearch
Class MCATSearchModel

java.lang.Object
  extended by au.edu.jcu.hermes.plugin.mcatsearch.MCATSearchModel
All Implemented Interfaces:
IMCATSearchModel

public class MCATSearchModel
extends java.lang.Object
implements IMCATSearchModel

Author: Mathew Wyatt Organisation: James Cook University Date: Nov 26, 2007 Time: 6:00:30 PM


Constructor Summary
MCATSearchModel(IFileSystemModel fileSystemModel)
           
 
Method Summary
 void addErrorListener(java.awt.event.ActionListener actionListener)
          Listens for error events
 void addQueryResultsListener(java.awt.event.ActionListener actionListener)
          Listeners for when the model has finished processing the query
 void advancedSearch(java.util.ArrayList<Condition> conditions)
          Performs an advanced search given
 SearchResultItem[] getQueryResults()
          Returns query results for a query which has just been performed
 FileObject[] getSearchResults()
          Return the search results
 void simpleSearch(java.lang.String simpleQueryString)
          Performs a simple search given a query string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCATSearchModel

public MCATSearchModel(IFileSystemModel fileSystemModel)
Method Detail

simpleSearch

public void simpleSearch(java.lang.String simpleQueryString)
Description copied from interface: IMCATSearchModel
Performs a simple search given a query string

Specified by:
simpleSearch in interface IMCATSearchModel

addQueryResultsListener

public void addQueryResultsListener(java.awt.event.ActionListener actionListener)
Description copied from interface: IMCATSearchModel
Listeners for when the model has finished processing the query

Specified by:
addQueryResultsListener in interface IMCATSearchModel

getQueryResults

public SearchResultItem[] getQueryResults()
Description copied from interface: IMCATSearchModel
Returns query results for a query which has just been performed

Specified by:
getQueryResults in interface IMCATSearchModel
Returns:

getSearchResults

public FileObject[] getSearchResults()
Description copied from interface: IMCATSearchModel
Return the search results

Specified by:
getSearchResults in interface IMCATSearchModel
Returns:

advancedSearch

public void advancedSearch(java.util.ArrayList<Condition> conditions)
Description copied from interface: IMCATSearchModel
Performs an advanced search given

Specified by:
advancedSearch in interface IMCATSearchModel

addErrorListener

public void addErrorListener(java.awt.event.ActionListener actionListener)
Description copied from interface: IMCATSearchModel
Listens for error events

Specified by:
addErrorListener in interface IMCATSearchModel