|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.query.QueryPlugin
Field Summary |
Fields inherited from interface edu.ucsb.nceas.morpho.framework.QueryRefreshInterface |
DOCID, HASDATA, KEYWORDS, LASTMODIFIED, LOCAL, NET, OPEN_DATAPACKAGE_COMMAND, SEARCH_COMMAND, SURNAME, TITLE |
Constructor Summary | |
QueryPlugin()
Construct the query plugin. |
Method Summary | |
void |
connectionChanged(boolean connected)
Implement the ConnectionListener interface so we know when to refresh queries. |
ColumnSortableTableModel |
doOwnerQueryForCurrentUser(java.lang.String[] headNames,
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 |
initialize(Morpho morpho)
The plugin must store a reference to the Morpho in order to be able to call the services available through the framework. |
void |
refresh()
This method is called to refresh a query when a change is made that should be propogated to the query result screens. |
void |
updateSavedQueryMenuItems(Morpho newMorpho)
This method implements from QueryRefreshInterface. |
void |
usernameChanged(java.lang.String newUsername)
Implement the ConnectionListener interface so we know when to refresh queries. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryPlugin()
Method Detail |
public void initialize(Morpho morpho)
initialize
in interface PluginInterface
morpho
- Morphopublic void usernameChanged(java.lang.String newUsername)
usernameChanged
in interface ConnectionListener
newUsername
- Stringpublic void connectionChanged(boolean connected)
connectionChanged
in interface ConnectionListener
connected
- booleanpublic void refresh()
refresh
in interface QueryRefreshInterface
public void updateSavedQueryMenuItems(Morpho newMorpho)
updateSavedQueryMenuItems
in interface QueryRefreshInterface
newMorpho
- new Morpho object after switch profilepublic Command getCommandObject(int commandIdentifier) throws java.lang.ClassNotFoundException
getCommandObject
in interface QueryRefreshInterface
commandIdentifier
- integer constant identifying the command Options
include:java.lang.ClassNotFoundException
public ColumnSortableTableModel doOwnerQueryForCurrentUser(java.lang.String[] headNames, java.lang.String deletedDocid)
doOwnerQueryForCurrentUser
in interface QueryRefreshInterface
headNames
- the select column namesdeletedDocid
- the docid should be delted from the vector
(@see edu.ucsb.nceas.morpho.query.ResultSet)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |