|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.core.site.search.SearchSiteResult
public class SearchSiteResult
captures the results of a search request.
| Constructor Summary | |
|---|---|
SearchSiteResult(ServiceRequest req)
creates a new SearchSiteResult. |
|
| Method Summary | |
|---|---|
void |
addSitemapNode(SitemapNode n)
adds a new SitemapNode to the Result. |
org.jdom.Element |
deserializeToJDOM()
returns a Result for SearchSite. |
java.lang.Integer |
getOffset()
|
java.lang.String |
getParsedQuery()
|
java.lang.String |
getQuery()
|
protected ServiceRequest |
getRequest()
gives access to the request. |
protected java.util.List<SitemapNode> |
getSitemapNodes()
gives access to the SitemapNodes. |
java.lang.Integer |
getTotalResults()
|
boolean |
hasMorePages()
returns whether the SiteSearchResult at the current offset has
more pages. |
protected void |
initSitemapNode(SitemapNode n)
initialises the required fields of the given SitemapNode. |
void |
setMaxQuickNavigationLinks(int i)
sets the maximum number of quick navigation links when paging. |
void |
setMaxResultsPerPage(int maxResults)
sets the maximum number of results to be displayed on a single page. |
void |
setOffset(java.lang.Integer o)
|
void |
setParsedQuery(java.lang.String pq)
|
void |
setQuery(java.lang.String q)
|
void |
setSitemapNodes(java.util.List<SitemapNode> list)
sets the SitemapNodes for the result. |
void |
setTotalResults(java.lang.Integer t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchSiteResult(ServiceRequest req)
SearchSiteResult.
req - the current request| Method Detail |
|---|
protected final ServiceRequest getRequest()
protected final java.util.List<SitemapNode> getSitemapNodes()
SitemapNodes.
public final void addSitemapNode(SitemapNode n)
SitemapNode to the Result.
n - the node to be addedpublic final void setSitemapNodes(java.util.List<SitemapNode> list)
SitemapNodes for the result.
list - the list of nodespublic final java.lang.Integer getOffset()
public final void setOffset(java.lang.Integer o)
o - the offset to setpublic final void setMaxResultsPerPage(int maxResults)
maxResults - the maximum number of results per pagepublic final void setMaxQuickNavigationLinks(int i)
i - the maximum number of quick navigation linkspublic final java.lang.String getParsedQuery()
public final void setParsedQuery(java.lang.String pq)
pq - the parsedQuery to setpublic final java.lang.String getQuery()
public final void setQuery(java.lang.String q)
q - the query to setpublic final java.lang.Integer getTotalResults()
public final void setTotalResults(java.lang.Integer t)
t - the totalResults to setpublic final boolean hasMorePages()
SiteSearchResult at the current offset has
more pages.
true, if the result at the current offset has more than
one page. Otherwise false.protected void initSitemapNode(SitemapNode n)
SitemapNode.
n - the node to be initialisedpublic org.jdom.Element deserializeToJDOM()
Result for SearchSite.
deserializeToJDOM in interface JDOMableResult for the SearchSiteJDOMable.deserializeToJDOM()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||