com.elasticpath.domain.catalogview.search.impl
Class SearchResultImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.catalogview.impl.AbstractCatalogViewResultImpl
              extended by com.elasticpath.domain.catalogview.search.impl.SearchResultImpl
All Implemented Interfaces:
CatalogViewResult, SearchResult, EpDomain, Transient, java.io.Serializable

public class SearchResultImpl
extends AbstractCatalogViewResultImpl
implements SearchResult

Represents a default implementation of SearchResult.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
SearchResultImpl()
           
 
Method Summary
 java.util.List getCategoryFilterOptions()
          Returns a list of filter options on category.
 java.util.List getFeaturedProducts()
          Returns a list of featured products.
 int getResultCount()
          Returns the amount of unfiltered results returned.
 java.util.List getSuggestions()
          Returns a list of alternate query suggestions.
 void setResultCount(int resultCount)
          Sets the amount of unfiltered results returned.
 void setSuggestions(java.util.List suggestions)
          Sets the list of alternate query suggestions.
 
Methods inherited from class com.elasticpath.domain.catalogview.impl.AbstractCatalogViewResultImpl
getAttributeFilterOptions, getAttributeRangeFilterOptions, getAttributeValueFilterOptions, getBrandFilterOptions, getCatalogViewRequest, getCategory, getDiversedAttributeValueFilters, getDiversedBrands, getFilterFactory, getPriceFilterOptions, getProducts, getSortedProducts, getTopBranchNodes, replicateData, setCatalogViewRequest, setCategory, setFeaturedProducts, setFilterFactory, setProducts
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.catalogview.CatalogViewResult
getBrandFilterOptions, getCatalogViewRequest, getCategory, getPriceFilterOptions, getProducts, getSortedProducts, replicateData, setCatalogViewRequest, setCategory, setFeaturedProducts, setProducts
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

SearchResultImpl

public SearchResultImpl()
Method Detail

getCategoryFilterOptions

public java.util.List getCategoryFilterOptions()
Returns a list of filter options on category.

Specified by:
getCategoryFilterOptions in interface SearchResult
Returns:
a list of filter options on category.

getFeaturedProducts

public java.util.List getFeaturedProducts()
Returns a list of featured products. This list is sorted by default based on the max featured product order.

Specified by:
getFeaturedProducts in interface CatalogViewResult
Overrides:
getFeaturedProducts in class AbstractCatalogViewResultImpl
Returns:
a list of featured products

getResultCount

public int getResultCount()
Returns the amount of unfiltered results returned.

Specified by:
getResultCount in interface SearchResult
Returns:
the number of unfiltered results

getSuggestions

public java.util.List getSuggestions()
Returns a list of alternate query suggestions.

Specified by:
getSuggestions in interface SearchResult
Returns:
the list of suggestions

setResultCount

public void setResultCount(int resultCount)
Sets the amount of unfiltered results returned.

Specified by:
setResultCount in interface SearchResult
Parameters:
resultCount - the number of unfiltered results

setSuggestions

public void setSuggestions(java.util.List suggestions)
Sets the list of alternate query suggestions.

Specified by:
setSuggestions in interface SearchResult
Parameters:
suggestions - the list of suggestions