edu.ucsb.nceas.morpho.framework
Interface QueryRefreshInterface

All Known Implementing Classes:
QueryPlugin

public interface QueryRefreshInterface

This service allows plugins to request that the query results be refreshed when they have made a change that should affect the resultset. All component plugins that make changes to data packages that should result in the "My Data" result set being updated should utilize this interface and call the refresh method after the change is completed.


Field Summary
static java.lang.String DOCID
           
static java.lang.String HASDATA
           
static java.lang.String KEYWORDS
           
static java.lang.String LASTMODIFIED
           
static java.lang.String LOCAL
           
static java.lang.String NET
           
static int OPEN_DATAPACKAGE_COMMAND
          Denotes an instance of the OpenDataPackageCommand object
static int SEARCH_COMMAND
          Denotes an instance of the SearchCommand object
static java.lang.String SURNAME
           
static java.lang.String TITLE
           
 
Method Summary
 ColumnSortableTableModel doOwnerQueryForCurrentUser(java.lang.String[] headName, java.lang.String deletedDocid)
          performs a local query to get the documents owned by the user, as identified by the current profile
 Command getCommandObject(int commandIdentifier)
          return an instance of a Command object, identified by one of the integer constants defined above
 void refresh()
          This method is called to refresh the main query when a change is made that should be propogated to the query result screens.
 void updateSavedQueryMenuItems(Morpho newMorpho)
          This mehod will be called when Morpho switch to another profile.
 

Field Detail

HASDATA

public static final java.lang.String HASDATA
See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values

DOCID

public static final java.lang.String DOCID
See Also:
Constant Field Values

SURNAME

public static final java.lang.String SURNAME
See Also:
Constant Field Values

KEYWORDS

public static final java.lang.String KEYWORDS
See Also:
Constant Field Values

LASTMODIFIED

public static final java.lang.String LASTMODIFIED
See Also:
Constant Field Values

LOCAL

public static final java.lang.String LOCAL
See Also:
Constant Field Values

NET

public static final java.lang.String NET
See Also:
Constant Field Values

OPEN_DATAPACKAGE_COMMAND

public static final int OPEN_DATAPACKAGE_COMMAND
Denotes an instance of the OpenDataPackageCommand object

See Also:
Constant Field Values

SEARCH_COMMAND

public static final int SEARCH_COMMAND
Denotes an instance of the SearchCommand object

See Also:
Constant Field Values
Method Detail

refresh

public void refresh()
This method is called to refresh the main query when a change is made that should be propogated to the query result screens.


updateSavedQueryMenuItems

public void updateSavedQueryMenuItems(Morpho newMorpho)
This mehod will be called when Morpho switch to another profile. Old saved queries will be removed from search menu and new saved queries will be adde into search menu.

Parameters:
newMorpho - new Morpho object after switch profile

getCommandObject

public Command getCommandObject(int commandIdentifier)
                         throws java.lang.ClassNotFoundException
return an instance of a Command object, identified by one of the integer constants defined above

Parameters:
commandIdentifier - integer constant identifying the command Options include:
  • OPEN_DATAPACKAGE_COMMAND
  • SEARCH_COMMAND
Throws:
ommandNotFoundException - if Command not found
java.lang.ClassNotFoundException

doOwnerQueryForCurrentUser

public ColumnSortableTableModel doOwnerQueryForCurrentUser(java.lang.String[] headName,
                                                           java.lang.String deletedDocid)
performs a local query to get the documents owned by the user, as identified by the current profile

Parameters:
headName - the columns selected
deletedDocid - the docid should be delted from the vector (@see edu.ucsb.nceas.morpho.query.ResultSet)
Returns:
AbstractTableModel containing results


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.