public class CmsHelpSearchResultView
extends java.lang.Object
CmsSearch
.Requires the following request parameters (see constructor):
限定符和类型 | 字段和说明 |
---|---|
protected CmsProject |
m_offlineProject
The project that forces evaluation of all dynamic content.
|
protected CmsProject |
m_onlineProject
The project that allows static export.
|
构造器和说明 |
---|
CmsHelpSearchResultView(CmsJspActionElement action)
Constructor with the action element to use.
|
CmsHelpSearchResultView(javax.servlet.jsp.PageContext pageContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Constructor with arguments for construction of a
. |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
displaySearchResult(CmsSearch search)
Returns the formatted search results.
|
boolean |
isExportLinks()
Returns true if the links to search results shall point to exported content, false else.
|
void |
setExportLinks(boolean exportLinks)
Set wether the links to search results point to exported content or not.
|
void |
setSearchRessourceUrl(java.lang.String uri)
Set a proprietary resource uri for the search page.
|
protected CmsProject m_offlineProject
protected CmsProject m_onlineProject
public CmsHelpSearchResultView(CmsJspActionElement action)
action
- the action element to usepublic CmsHelpSearchResultView(javax.servlet.jsp.PageContext pageContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
CmsJspActionElement
. pageContext
- the page context to userequest
- the current requestresponse
- the current responsepublic java.lang.String displaySearchResult(CmsSearch search)
search
- the preconfigured search beanpublic boolean isExportLinks()
public void setExportLinks(boolean exportLinks)
exportLinks
- The value that decides Set wether the links to search results point to exported content or not.public void setSearchRessourceUrl(java.lang.String uri)
This is optional but allows to override the standard search result links
(for next or previous pages) that point to
getJsp().getRequestContext().getUri()
whenever the search
uri is element of some template and should not be linked directly.
uri
- the proprietary resource uri for the search page