public class SearchResultChip extends AbstractChip
SearchResultListChip, and the search parameters that lead to
this result.CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
SearchResultChip(DisplayState displayState,
AbstractLuceneSearchChip parent,
LuceneIndex index,
String searchPattern,
List searchGroups) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFacetProvider(FacetProvider provider)
Adds a facet provider to the chip.
|
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
void |
dispose()
called when its display state is unbound from its http session.
|
Facet |
gatherSubValues(Facet.FacetValue value)
Gathers the sub values for given facet value.
|
String |
getEncodedFacetedSearchPattern() |
String |
getFacetedSearchPattern()
Gets the search pattern extended by the queries of all used facets.
|
String |
getFailureMessage()
Gets the reason for failing of search or null if no error has occurred.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
List<SearchResultNavigationChip> |
getNavigationChips()
Gets the list of all navigation chips.
|
List<SearchResultListChip> |
getResultListChips()
Gets the list of all result chips.
|
Language |
getSearchLanguage()
Gets the language used for search
|
String |
getSearchPattern()
Gets the search pattern without maybe used facets.
|
protected void |
init()
Initializes the chip.
|
protected boolean |
isInitialized()
Checks whether the chip is already initialized (this chip uses lazy initialization).
|
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
update(SearchResultNavigationChip chip,
boolean updateNavigation)
Updates the search results by using the selected facet values of all navigations.
|
addEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic SearchResultChip(DisplayState displayState, AbstractLuceneSearchChip parent, LuceneIndex index, String searchPattern, List searchGroups)
public void addFacetProvider(FacetProvider provider)
provider - provider of a facetprotected void init()
public Facet gatherSubValues(Facet.FacetValue value)
value - facet value for which the sub values will be gathered and setpublic void update(SearchResultNavigationChip chip, boolean updateNavigation)
chip - for each sub value of selected facet value of this navigation chip a search result is constructedupdateNavigation - true for updating the facet values of each navigation too (a second search is needed)public void processEvents(Map events)
Chippublic String getJSPURI()
Chippublic List<SearchResultListChip> getResultListChips()
protected boolean isInitialized()
public List<SearchResultNavigationChip> getNavigationChips()
public Language getSearchLanguage()
public String getSearchPattern()
public String getFacetedSearchPattern()
public String getEncodedFacetedSearchPattern()
public void checkValid()
AbstractChipcheckValid in interface ChipcheckValid in class AbstractChippublic String getFailureMessage()
public void dispose()
Chipdispose in interface Chipdispose in class AbstractChipCopyright © 2017 SAP SE. All Rights Reserved.