|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractTransientImpl
com.elasticpath.domain.catalogview.impl.AbstractCatalogViewRequestImpl
public abstract class AbstractCatalogViewRequestImpl
This is an abstract implementation of CatalogViewRequest. It can be extended to create a concrete catalog view request, such as a
search request or a catalog browsing request.
| Nested Class Summary | |
|---|---|
static class |
AbstractCatalogViewRequestImpl.FilterQueryStringImpl
Represent a simple bean which aggregate some query strings for a filter. |
| Nested classes/interfaces inherited from interface com.elasticpath.domain.catalogview.CatalogViewRequest |
|---|
CatalogViewRequest.FilterQueryString |
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
AbstractCatalogViewRequestImpl()
Default Constructor. |
|
| Method Summary | |
|---|---|
java.util.List |
filterProducts(CatalogViewRequest previousSearchRequest,
java.util.List products)
Filter the given products list and returns the filtered products. |
long |
getCategoryUid()
Returns the keywords specified in the search request. |
java.util.Currency |
getCurrency()
Returns the currency. |
java.lang.String |
getFilterIds()
Returns a String of the list of Filter. |
java.util.List |
getFilterQueryStrings()
Composes and returns a list of FilterQueryStrings for all filters specified in this catalog view request. |
java.util.List |
getFilters()
Returns the list of Filter specified in the search request. |
java.util.Locale |
getLocale()
Returns the locale. |
int |
getMaxReturnNumber()
Returns the maximum return number specified in the search request. |
Sorter |
getSorter()
Returns the sorter specified in the search request. |
SorterFactory |
getSorterFactory()
Get the sorter factoy SorterFactory. |
void |
setCategoryUid(long categoryUid)
Sets the keywords. |
void |
setCurrency(java.util.Currency currency)
Sets the currency. |
void |
setFilterFactory(FilterFactory filterFactory)
Sets the search filter factory. |
void |
setFiltersIdStr(java.lang.String filtersIdStr)
Sets the filters identifier strings. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
void |
setMaxReturnNumber(int maxReturnNumber)
Sets the maximum return number. |
void |
setSorterFactory(SorterFactory sorterFactory)
Sets the search sorter factory. |
void |
setSorterIdStr(java.lang.String sorterIdStr)
Sets the sorter identifier string. |
| 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.CatalogViewRequest |
|---|
addFilter, compare, getQueryString |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractCatalogViewRequestImpl()
| Method Detail |
|---|
public java.util.List filterProducts(CatalogViewRequest previousSearchRequest,
java.util.List products)
SearchRequest which has already being
applied to the given products, we won't do the filterings again for those filters also in previous SearchRequest.
filterProducts in interface CatalogViewRequestpreviousSearchRequest - previous search requestproducts - the products to filter
public long getCategoryUid()
getCategoryUid in interface CatalogViewRequestpublic java.util.Currency getCurrency()
getCurrency in interface CatalogViewRequestpublic java.lang.String getFilterIds()
String of the list of Filter.
getFilterIds in interface CatalogViewRequestString of the list of Filterpublic java.util.List getFilterQueryStrings()
FilterQueryStrings for all filters specified in this catalog view request.
getFilterQueryStrings in interface CatalogViewRequestFilterQueryStringspublic java.util.List getFilters()
Filter specified in the search request.
getFilters in interface CatalogViewRequestFilterpublic java.util.Locale getLocale()
getLocale in interface CatalogViewRequestpublic int getMaxReturnNumber()
getMaxReturnNumber in interface CatalogViewRequestpublic Sorter getSorter()
getSorter in interface CatalogViewRequestpublic SorterFactory getSorterFactory()
SorterFactory.
getSorterFactory in interface CatalogViewRequest
public void setCategoryUid(long categoryUid)
throws EpCatalogViewRequestBindException
setCategoryUid in interface CatalogViewRequestcategoryUid - the keywords to set
EpCatalogViewRequestBindException - in case the given keywords is invalidpublic void setCurrency(java.util.Currency currency)
setCurrency in interface CatalogViewRequestcurrency - the currency to setpublic void setFilterFactory(FilterFactory filterFactory)
filterFactory - the search filter factory
public void setFiltersIdStr(java.lang.String filtersIdStr)
throws EpCatalogViewRequestBindException
setFiltersIdStr in interface CatalogViewRequestfiltersIdStr - the filters identifier strings
EpCatalogViewRequestBindException - in case the given filters identifier strings are invalidpublic void setLocale(java.util.Locale locale)
setLocale in interface CatalogViewRequestlocale - the locale to setpublic void setMaxReturnNumber(int maxReturnNumber)
setMaxReturnNumber in interface CatalogViewRequestmaxReturnNumber - the page number to setpublic void setSorterFactory(SorterFactory sorterFactory)
sorterFactory - the search sorter factory
public void setSorterIdStr(java.lang.String sorterIdStr)
throws EpCatalogViewRequestBindException
setSorterIdStr in interface CatalogViewRequestsorterIdStr - the sorter identifier string.
EpCatalogViewRequestBindException - in case the given sorter identifier is invalid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||