|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.globalSearch.ui.AbstractSearchResult
public abstract class AbstractSearchResult
An abstract base class for Search Results. All implementation classes MUST extend this abstract class and not implement the interface directly to allow for future interface changes.
Field Summary | |
---|---|
protected java.util.List<SearchCategory> |
_allSearchableCategories
All categories that can be searched upon, not necessarily the ones the user picked to search on. |
protected java.util.List<TreeItem> |
_attributeTreeItems
The root tree items wrapped by _attributeTreeModel for our JSF tree. |
protected org.apache.myfaces.trinidad.model.TreeModel |
_attributeTreeModel
|
protected java.lang.String |
_callerContext
|
protected java.lang.String |
_errorMessageName
Error message name in cases where _inError == true. |
protected boolean |
_inError
|
protected boolean |
_searched
Has this search been performed? |
protected java.util.List<SearchCategory> |
_searchedCategories
The basic set of searched categories selected by the user from the Category list in the UI. |
protected SearchFilterItems |
_searchFilterItems
|
protected java.lang.String |
_searchString
|
Fields inherited from interface oracle.apps.fnd.applcore.globalSearch.ui.SearchResult |
---|
BLOCK_SIZE |
Constructor Summary | |
---|---|
AbstractSearchResult(java.lang.String searchTabName,
java.util.List<SearchCategory> searchCategories,
java.util.List<SearchCategory> allSearchableCategories,
java.lang.String searchString,
java.lang.String callerContext,
boolean usesFilters)
Construct this class. |
Method Summary | |
---|---|
void |
addWarning(java.lang.String warning)
Add a warning to the search result. |
boolean |
containsAllSearchableCategories(java.util.List<SearchCategory> categories)
Does the passed list of categories contain all of the Searchable categories. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<SearchCategory> |
getAllSearchableCategories()
Get the list of all allowed categories the user can pick from. |
java.lang.String |
getApproxNumResultsStr()
Get the heuristic number of results the searh engine estimates it can return as a String "1234 Resuts". |
java.util.List<TreeItem> |
getAttributeTreeItems()
Get the attribute tree items for this search. |
org.apache.myfaces.trinidad.model.TreeModel |
getAttributeTreeModel()
Get the attribute Tree Model. |
java.lang.String |
getCallerContext()
Get the caller Search Context for this Search. |
TreeItem |
getCategoryTreeItem(SearchCategory cat)
Get the root level Tree Item for given category. |
org.apache.myfaces.trinidad.model.RowKeySet |
getDisclosedRowKeys()
Get the disclosed row keys for this result. |
java.lang.String |
getErrorMessageName()
Obtain an error message name for the search, for cases where isInError() == true. |
org.apache.myfaces.trinidad.model.CollectionModel |
getItemsCM()
Get the CollectionModel used by the UI to show the results. |
long |
getSearchCreationTime()
Get the time this class was created. |
java.util.List<SearchCategory> |
getSearchedCategories()
Get the list of categories used in the search. |
SearchFilterItems |
getSearchFilterItems()
Get the current Search FIlter Items, this will include the categories, search text, topic and attribute filters. |
java.lang.String |
getSearchString()
Get the Search String as entered by the user. |
java.lang.String |
getSearchTabName()
Get the search tab name. |
java.util.List<java.lang.String> |
getWarningsList()
Get any warnings from the search result. |
int |
hashCode()
|
boolean |
isInError()
Is this search in error, that is could not be performed and should not be shown. |
boolean |
isSaved()
Was this search result originally a saved search? It may have been refreshed due to an attribute filter re-search, but this would not change the fact that it was originally run as a seved search. |
boolean |
isSearched()
Has the search been performed? |
boolean |
isUsesFilters()
Does this Search result support Attribute Filters? |
boolean |
isWarnings()
Are there any warnings to show the user? |
void |
setDisclosedRowKeys(org.apache.myfaces.trinidad.model.RowKeySet disclosedRowKeys)
Set the disclosed row keys for this result. |
void |
setSaved(boolean wasSaved)
Set the initial saved stateof this search? It may have been refreshed due to an attribute filter re-search, but this would not change the fact that it was originally run as a seved search. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.apps.fnd.applcore.globalSearch.ui.SearchResult |
---|
allResultsRetrieved, copySearch, extendSearchResults, getApproxNumResults, getCurrentNumberOfResults, getItem, search |
Field Detail |
---|
protected boolean _searched
protected boolean _inError
protected java.lang.String _errorMessageName
protected SearchFilterItems _searchFilterItems
protected java.util.List<SearchCategory> _searchedCategories
protected java.util.List<SearchCategory> _allSearchableCategories
protected java.lang.String _searchString
protected java.lang.String _callerContext
protected java.util.List<TreeItem> _attributeTreeItems
protected transient org.apache.myfaces.trinidad.model.TreeModel _attributeTreeModel
Constructor Detail |
---|
public AbstractSearchResult(java.lang.String searchTabName, java.util.List<SearchCategory> searchCategories, java.util.List<SearchCategory> allSearchableCategories, java.lang.String searchString, java.lang.String callerContext, boolean usesFilters)
searchTabName
- Search Tab name.searchCategories
- search categories.allSearchableCategories
- list of allowed categories to search on.
A superset of searchCategories.searchString
- Search String.callerContext
- a String which represents to the caller, the context
in which the search result will be called. This primarily relates to saved
searches, which will be saved with this context, and only saved searches
with this context shown to the user.usesFilters
- does this search use filters.Method Detail |
---|
public SearchFilterItems getSearchFilterItems()
getSearchFilterItems
in interface SearchResult
public java.util.List<SearchCategory> getSearchedCategories()
getSearchedCategories
in interface SearchResult
public java.util.List<SearchCategory> getAllSearchableCategories()
getAllSearchableCategories
in interface SearchResult
public boolean containsAllSearchableCategories(java.util.List<SearchCategory> categories)
containsAllSearchableCategories
in interface SearchResult
categories
- non-null List of SearchCategory.
public java.lang.String getSearchString()
getSearchString
in interface SearchResult
public java.lang.String getCallerContext()
getCallerContext
in interface SearchResult
public org.apache.myfaces.trinidad.model.TreeModel getAttributeTreeModel()
getAttributeTreeModel
in interface SearchResult
public TreeItem getCategoryTreeItem(SearchCategory cat)
getCategoryTreeItem
in interface SearchResult
cat
- group to find.
public org.apache.myfaces.trinidad.model.CollectionModel getItemsCM()
getItemsCM
in interface SearchResult
public java.util.List<TreeItem> getAttributeTreeItems()
getAttributeTreeItems
in interface SearchResult
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getSearchTabName()
getSearchTabName
in interface SearchResult
public boolean isSearched()
isSearched
in interface SearchResult
public boolean isUsesFilters()
isUsesFilters
in interface SearchResult
public void setDisclosedRowKeys(org.apache.myfaces.trinidad.model.RowKeySet disclosedRowKeys)
setDisclosedRowKeys
in interface SearchResult
disclosedRowKeys
- disclosed row keys.public org.apache.myfaces.trinidad.model.RowKeySet getDisclosedRowKeys()
getDisclosedRowKeys
in interface SearchResult
public boolean isSaved()
isSaved
in interface SearchResult
public void setSaved(boolean wasSaved)
setSaved
in interface SearchResult
wasSaved
- if was originally run as a saved search, false otherwise.public long getSearchCreationTime()
getSearchCreationTime
in interface SearchResult
public java.lang.String getApproxNumResultsStr()
getApproxNumResultsStr
in interface SearchResult
SearchResult.getApproxNumResults()
public boolean isInError()
isInError
in interface SearchResult
public java.lang.String getErrorMessageName()
getErrorMessageName
in interface SearchResult
public java.util.List<java.lang.String> getWarningsList()
getWarningsList
in interface SearchResult
public void addWarning(java.lang.String warning)
addWarning
in interface SearchResult
warning
- the warning text to show the user.public boolean isWarnings()
isWarnings
in interface SearchResult
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |