|
|||||||||
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 FilterQueryString s 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 CatalogViewRequest
previousSearchRequest
- previous search requestproducts
- the products to filter
public long getCategoryUid()
getCategoryUid
in interface CatalogViewRequest
public java.util.Currency getCurrency()
getCurrency
in interface CatalogViewRequest
public java.lang.String getFilterIds()
String
of the list of Filter
.
getFilterIds
in interface CatalogViewRequest
String
of the list of Filter
public java.util.List getFilterQueryStrings()
FilterQueryString
s for all filters specified in this catalog view request.
getFilterQueryStrings
in interface CatalogViewRequest
FilterQueryString
spublic java.util.List getFilters()
Filter
specified in the search request.
getFilters
in interface CatalogViewRequest
Filter
public java.util.Locale getLocale()
getLocale
in interface CatalogViewRequest
public int getMaxReturnNumber()
getMaxReturnNumber
in interface CatalogViewRequest
public Sorter getSorter()
getSorter
in interface CatalogViewRequest
public SorterFactory getSorterFactory()
SorterFactory
.
getSorterFactory
in interface CatalogViewRequest
public void setCategoryUid(long categoryUid) throws EpCatalogViewRequestBindException
setCategoryUid
in interface CatalogViewRequest
categoryUid
- the keywords to set
EpCatalogViewRequestBindException
- in case the given keywords is invalidpublic void setCurrency(java.util.Currency currency)
setCurrency
in interface CatalogViewRequest
currency
- the currency to setpublic void setFilterFactory(FilterFactory filterFactory)
filterFactory
- the search filter factorypublic void setFiltersIdStr(java.lang.String filtersIdStr) throws EpCatalogViewRequestBindException
setFiltersIdStr
in interface CatalogViewRequest
filtersIdStr
- the filters identifier strings
EpCatalogViewRequestBindException
- in case the given filters identifier strings are invalidpublic void setLocale(java.util.Locale locale)
setLocale
in interface CatalogViewRequest
locale
- the locale to setpublic void setMaxReturnNumber(int maxReturnNumber)
setMaxReturnNumber
in interface CatalogViewRequest
maxReturnNumber
- the page number to setpublic void setSorterFactory(SorterFactory sorterFactory)
sorterFactory
- the search sorter factorypublic void setSorterIdStr(java.lang.String sorterIdStr) throws EpCatalogViewRequestBindException
setSorterIdStr
in interface CatalogViewRequest
sorterIdStr
- 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 |