|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.RemoteSearchResultSetImpl
A remote search result set represents a page in the Remote Search view. A search result set contains multiple search configurations and their results. This allows it to contain results from multiple connections, filters, and folders (from different systems).
Field Summary | |
---|---|
protected Vector |
configurations
|
protected String |
name
|
Constructor Summary | |
---|---|
RemoteSearchResultSetImpl()
Constructor to create a result set. |
Method Summary | |
---|---|
void |
addResult(IRemoteSearchResultConfiguration config,
Object result)
Add a result for a search configuration. |
void |
addSearchConfiguration(IRemoteSearchResultConfiguration config)
Add a search configuration. |
void |
cancel()
Cancels the search. |
void |
dispose()
Removes all configurations. |
Object |
getAdapter(Class adapter)
|
Object[] |
getAllResults()
Returns all results of the search. |
String |
getName()
Gets the name of the search that is being run. |
int |
getNumOfResults()
Gets the number of results. |
Object[] |
getResultsForConfiguration(IRemoteSearchResultConfiguration config)
Returns the results of a particular search configuration. |
Iterator |
getSearchConfigurations()
Returns an iterator over search configurations. |
boolean |
isCancelled()
Returns whether the search is cancelled. |
boolean |
isDisconnected()
Returns whether the search is disconnected. |
boolean |
isFinished()
Returns whether the search is finished. |
boolean |
isRunning()
Returns whether search is running. |
void |
removeAllResults()
Removes all results of the search. |
void |
removeAndAddResult(Object oldResult,
Object newResult)
Removes the old result from configurations where it is found, and add the new result to those configurations. |
void |
removeResult(IRemoteSearchResultConfiguration config,
Object result)
Removes a result from a search configuration. |
void |
removeResult(Object result)
Removes a result from all search configurations where it exists. |
void |
removeSearchConfiguration(IRemoteSearchResultConfiguration config)
Removes a search configuration. |
void |
setName(String name)
Sets the name of the search. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector configurations
protected String name
Constructor Detail |
public RemoteSearchResultSetImpl()
Method Detail |
public void setName(String name)
IRemoteSearchResultSet
setName
in interface IRemoteSearchResultSet
name
- the name of the search.IRemoteSearchResultSet.setName(java.lang.String)
public String getName()
IRemoteSearchResultSet
getName
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.getName()
public void addSearchConfiguration(IRemoteSearchResultConfiguration config)
IRemoteSearchResultSet
addSearchConfiguration
in interface IRemoteSearchResultSet
config
- a search configuration.IRemoteSearchResultSet.addSearchConfiguration(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)
public void removeSearchConfiguration(IRemoteSearchResultConfiguration config)
IRemoteSearchResultSet
removeSearchConfiguration
in interface IRemoteSearchResultSet
config
- a search configuration.IRemoteSearchResultSet.removeSearchConfiguration(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)
public Iterator getSearchConfigurations()
IRemoteSearchResultSet
getSearchConfigurations
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.getSearchConfigurations()
public void addResult(IRemoteSearchResultConfiguration config, Object result)
IRemoteSearchResultSet
addResult
in interface IRemoteSearchResultSet
config
- a search configuration that was previously added.result
- a search result.IRemoteSearchResultSet.addResult(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration, java.lang.Object)
public void removeResult(IRemoteSearchResultConfiguration config, Object result)
IRemoteSearchResultSet
removeResult
in interface IRemoteSearchResultSet
config
- a search configuration that was previously added.result
- a search result.IRemoteSearchResultSet.removeResult(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration, java.lang.Object)
public Object[] getResultsForConfiguration(IRemoteSearchResultConfiguration config)
IRemoteSearchResultSet
getResultsForConfiguration
in interface IRemoteSearchResultSet
config
- a search configuration.
IRemoteSearchResultSet.getResultsForConfiguration(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)
public Object[] getAllResults()
IRemoteSearchResultSet
getAllResults
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.getAllResults()
public void removeAllResults()
IRemoteSearchResultSet
removeAllResults
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.removeAllResults()
public int getNumOfResults()
IRemoteSearchResultSet
getNumOfResults
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.getNumOfResults()
public void cancel()
IRemoteSearchResultSet
cancel
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.cancel()
public void removeResult(Object result)
IRemoteSearchResultSet
removeResult
in interface IRemoteSearchResultSet
result
- a search result.IRemoteSearchResultSet.removeResult(java.lang.Object)
public void removeAndAddResult(Object oldResult, Object newResult)
IRemoteSearchResultSet
removeAndAddResult
in interface IRemoteSearchResultSet
oldResult
- the old result.newResult
- the new result.IRemoteSearchResultSet.removeAndAddResult(java.lang.Object, java.lang.Object)
public void dispose()
IRemoteSearchResultSet
dispose
method of
the configurations before removing them.
dispose
in interface IRemoteSearchResultSet
IRemoteSearchResultSet.dispose()
public boolean isCancelled()
IRemoteSearchResultSet
isCancelled
in interface IRemoteSearchResultSet
true
if the search is cancelled, false
otherwise.IRemoteSearchResultSet.isCancelled()
public boolean isFinished()
IRemoteSearchResultSet
isFinished
in interface IRemoteSearchResultSet
true
if the search is finished, false
otherwise.IRemoteSearchResultSet.isFinished()
public boolean isRunning()
IRemoteSearchResultSet
isRunning
in interface IRemoteSearchResultSet
true
if the search is running, false
otherwise.IRemoteSearchResultSet.isRunning()
public boolean isDisconnected()
IRemoteSearchResultSet
isDisconnected
in interface IRemoteSearchResultSet
true
if the search is disconnected, false
otherwise.IRemoteSearchResultSet.isDisconnected()
public Object getAdapter(Class adapter)
getAdapter
in interface IAdaptable
IAdaptable.getAdapter(java.lang.Class)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |