@ProviderType @Deprecated public final class Search extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PN_ACCOUNT_NUMBER
Deprecated.
Property name account number
|
static java.lang.String |
PN_MEMBER_ID
Deprecated.
Property name member ID
|
static java.lang.String |
PN_SEARCHFORMXML
Deprecated.
Property name search form XML
|
static java.lang.String |
QUERY_PARAM_NAME
Deprecated.
Query parameter
|
static java.lang.String |
VALID_QUERY_PATTERN
Deprecated.
Valid query pattern
|
Constructor and Description |
---|
Search(SlingHttpServletRequest request,
Configuration configuration)
Deprecated.
|
Search(SlingHttpServletRequest request,
Configuration configuration,
HttpClientBuilderFactory httpClientBuilderFactory)
Deprecated.
Creates a new instance of a Search object.
|
Search(SlingHttpServletRequest request,
Configuration configuration,
HttpClientBuilderFactory httpClientBuilderFactory,
int connectionTimeout,
int socketTimeout)
Deprecated.
Creates a new instance of a Search object.
|
Modifier and Type | Method and Description |
---|---|
Banner |
getBanner(java.lang.String bannerArea)
Deprecated.
|
java.util.List<Banner> |
getBanners()
Deprecated.
Returns a
List of Banner s. |
java.util.List<BreadCrumbItem> |
getBreadcrumbs()
Deprecated.
Returns a
List of BreadCrumbItem 's. |
java.lang.Long |
getExecutionTime()
Deprecated.
Returns query execution time.
|
Facet |
getFacet(java.lang.String name)
Deprecated.
|
java.util.List<Facet> |
getFacets()
Deprecated.
Returns a
List of Facet 's. |
Menu |
getMenu(java.lang.String menuName)
Deprecated.
|
java.util.List<Menu> |
getMenus()
Deprecated.
Returns a
List of Menu s. |
Pagination |
getPagination()
Deprecated.
Returns the
Pagination . |
Query |
getQuery()
Deprecated.
Returns the
Query . |
static java.lang.String |
getQueryParameter(java.lang.String queryString,
java.lang.String parameter)
Deprecated.
Returns a query parameter from the provided query string.
|
java.lang.String |
getQueryString()
Deprecated.
Returns current query string.
|
java.lang.String |
getRedirect()
Deprecated.
Returns a
String containing the url to redirect to. |
java.util.List<Result> |
getResults()
Deprecated.
Returns a
List of Result 's. |
SearchForm |
getSearchForm()
Deprecated.
Returns the
SearchForm . |
Suggestions |
getSuggestion()
Deprecated.
Returns a
Suggestions object. |
java.util.List<Suggestion> |
getSuggestions()
Deprecated.
Returns a
List of Suggestion 's. |
void |
setQueryString(java.lang.String query)
Deprecated.
Sets query string.
|
boolean |
shouldRedirect()
Deprecated.
Returns a
Boolean wether the request should be redirected |
public static final java.lang.String VALID_QUERY_PATTERN
public static final java.lang.String QUERY_PARAM_NAME
public static final java.lang.String PN_MEMBER_ID
public static final java.lang.String PN_ACCOUNT_NUMBER
public static final java.lang.String PN_SEARCHFORMXML
@Deprecated public Search(SlingHttpServletRequest request, Configuration configuration) throws SearchPromoteException
Search(SlingHttpServletRequest, Configuration, HttpClientBuilderFactory)
instead.request
- SlingHttpServletRequest
configuration
- Configuration
SearchPromoteException
- SearchPromoteException
if an error occurspublic Search(SlingHttpServletRequest request, Configuration configuration, HttpClientBuilderFactory httpClientBuilderFactory, int connectionTimeout, int socketTimeout) throws SearchPromoteException
request
- The SlingHttpServletRequest
configuration
- The Configuration
httpClientBuilderFactory
- The HttpClientBuilderFactory
connectionTimeout
- Timeout in milliseconds until a connection is
established. A timeout value of 0 is interpreted as an
infinite timeout.socketTimeout
- Timeout in milliseconds, which is the timeout for
waiting for data or a maximum period of inactivity between two
consecutive data packets. A timeout value of 0 is
interpreted as an infinite timeout.SearchPromoteException
- if an error occurspublic Search(SlingHttpServletRequest request, Configuration configuration, HttpClientBuilderFactory httpClientBuilderFactory) throws SearchPromoteException
request
- SlingHttpServletRequest
configuration
- Configuration
httpClientBuilderFactory
- HttpClientBuilderFactory
SearchPromoteException
- SearchPromoteException
if an error occurspublic static java.lang.String getQueryParameter(java.lang.String queryString, java.lang.String parameter)
queryString
- queryStringparameter
- parameterpublic java.lang.String getQueryString()
public void setQueryString(java.lang.String query)
query
- querystringpublic SearchForm getSearchForm()
SearchForm
.SearchForm
public java.util.List<BreadCrumbItem> getBreadcrumbs()
List
of BreadCrumbItem
's.List
of BreadCrumbItem
spublic Pagination getPagination()
Pagination
.Pagination
public java.util.List<Result> getResults()
List
of Result
's.List
of Result
s.public java.lang.String getRedirect()
String
containing the url to redirect to.String
containing the url to redirect topublic boolean shouldRedirect()
Boolean
wether the request should be redirectedBoolean
wether the request should be redirectedpublic Suggestions getSuggestion()
Suggestions
object.Suggestions
objectpublic java.util.List<Suggestion> getSuggestions()
List
of Suggestion
's.List
of Suggestion
spublic java.util.List<Facet> getFacets()
List
of Facet
's.List
of Facet
s.public Facet getFacet(java.lang.String name)
name
- facet nameFacet
with specified namepublic java.util.List<Banner> getBanners()
List
of Banner
s.List
of Banner
spublic Banner getBanner(java.lang.String bannerArea)
bannerArea
- bannerAreaBanner
public java.util.List<Menu> getMenus()
List
of Menu
s.public Menu getMenu(java.lang.String menuName)
menuName
- menuNameMenu
public java.lang.Long getExecutionTime()
Copyright © 2010 - 2020 Adobe. All Rights Reserved