|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.SearchHistoryBean
ISearchHistory object that can be used as a Session-scoped Bean.
XML Configuration Template:
<SearchHistoryBean class="com.raritantechnologies.searchApp.SearchHistoryBean"
name="[ SearchHistory name ]"
yesnoParm="true|false"
optionalParametersList="[ list of parameters to save ]"
databaseConnectionManagerName="[ name of DatabaseConnectionManager ]" >
</SearchHistoryBean>
| Field Summary | |
static java.lang.String |
defaultBeanName
|
static java.lang.String |
defaultGroupBeanName
|
static java.lang.String |
hitsKeyword
|
java.util.Set |
hsFixedParmsToSave
|
java.util.Map |
hsGroups
|
java.util.Set |
hsOptionalParmsToSave
|
java.lang.String |
optionalParametersList
|
| Constructor Summary | |
SearchHistoryBean()
|
|
| Method Summary | |
void |
add(java.util.Map inputParameters,
IResultSet currentResults,
SourceLoginInfo[] sources)
|
void |
add(java.util.Map inputParameters,
IResultSet currentResults,
SourceLoginInfo[] sources,
boolean addAll)
|
void |
addFixedParameter(java.lang.String parm)
|
void |
addGroupOfSearches(java.lang.String name,
java.util.Set searchIds)
SAVE AS -- save a group of searches as a group. |
void |
addGroupOfSearches(java.lang.String groupName,
java.util.Vector v)
Add a group of searches from a Vector of OrderedMaps. |
OrderedMap |
getGroup(java.lang.String name)
|
java.util.Iterator |
getGroupNames()
|
QueryResultBean |
getQueryResultBean(int searchNum)
get the QueryResultBean corresponding to |
QueryResultBeanSet |
getQueryResultBeanSet()
|
java.util.Iterator |
getSavedSearches()
|
ISearchHistory |
getSearchHistoryDetailObject(java.lang.String name)
|
java.lang.String |
getYesNoParm()
|
void |
initialize(org.w3c.dom.Element elem)
initialize() -- initialize from the configuration xml file. |
void |
initializeFromDatabase(java.lang.String userID)
initialize search history saved queries from database. |
boolean |
lastSearchWasSavedToHistory()
|
void |
loadGroupOfSearches(java.lang.String name)
|
void |
remove(int id)
|
void |
removeAllGroups()
|
void |
removeGroupOfSearches(java.lang.String name)
|
void |
setDatabaseConnectionManagerName(java.lang.String val)
|
void |
setOptionalParametersList(java.lang.String list)
|
void |
setYesNoParm(java.lang.String val)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String optionalParametersList
public java.util.Set hsFixedParmsToSave
public java.util.Set hsOptionalParmsToSave
public java.util.Map hsGroups
public static final java.lang.String defaultBeanName
public static final java.lang.String defaultGroupBeanName
public static final java.lang.String hitsKeyword
| Constructor Detail |
public SearchHistoryBean()
| Method Detail |
public void initializeFromDatabase(java.lang.String userID)
throws java.lang.Exception
initializeFromDatabase in interface ISearchHistoryjava.lang.Exception
public void addGroupOfSearches(java.lang.String name,
java.util.Set searchIds)
throws java.lang.Exception
addGroupOfSearches in interface ISearchHistoryjava.lang.Exception
public void addGroupOfSearches(java.lang.String groupName,
java.util.Vector v)
addGroupOfSearches in interface ISearchHistory
public void removeAllGroups()
throws java.lang.Exception
removeAllGroups in interface ISearchHistoryjava.lang.Exception
public void removeGroupOfSearches(java.lang.String name)
throws java.lang.Exception
removeGroupOfSearches in interface ISearchHistoryjava.lang.Exceptionpublic void loadGroupOfSearches(java.lang.String name)
loadGroupOfSearches in interface ISearchHistory
public void add(java.util.Map inputParameters,
IResultSet currentResults,
SourceLoginInfo[] sources)
add in interface ISearchHistory
public void add(java.util.Map inputParameters,
IResultSet currentResults,
SourceLoginInfo[] sources,
boolean addAll)
public int size()
size in interface ISearchHistorypublic QueryResultBeanSet getQueryResultBeanSet()
getQueryResultBeanSet in interface ISearchHistorypublic QueryResultBean getQueryResultBean(int searchNum)
getQueryResultBean in interface ISearchHistorypublic java.lang.String toString()
public void addFixedParameter(java.lang.String parm)
addFixedParameter in interface ISearchHistorypublic void setYesNoParm(java.lang.String val)
setYesNoParm in interface ISearchHistorypublic java.lang.String getYesNoParm()
getYesNoParm in interface ISearchHistorypublic void setDatabaseConnectionManagerName(java.lang.String val)
public void setOptionalParametersList(java.lang.String list)
setOptionalParametersList in interface ISearchHistorypublic void initialize(org.w3c.dom.Element elem)
initialize in interface IConfigurablepublic java.util.Iterator getGroupNames()
getGroupNames in interface ISearchHistorypublic OrderedMap getGroup(java.lang.String name)
getGroup in interface ISearchHistorypublic void remove(int id)
remove in interface ISearchHistorypublic java.util.Iterator getSavedSearches()
getSavedSearches in interface ISearchHistorypublic ISearchHistory getSearchHistoryDetailObject(java.lang.String name)
getSearchHistoryDetailObject in interface ISearchHistorypublic boolean lastSearchWasSavedToHistory()
lastSearchWasSavedToHistory in interface ISearchHistory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||