|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CatalogViewRequest
Represents a search request.
Nested Class Summary | |
---|---|
static interface |
CatalogViewRequest.FilterQueryString
Represent a simple bean which aggregate query strings for a filter. |
Method Summary | |
---|---|
CatalogViewRequest |
addFilter(Filter filter)
Creates and returns a more specific search request by adding the given filter. |
int |
compare(CatalogViewRequest searchRequest)
Compares this search requet with the given search request. |
java.util.List |
filterProducts(CatalogViewRequest previousSearchRequest,
java.util.List products)
Filter the given products list and returns the filtered products. |
long |
getCategoryUid()
Returns the category uid specified in the catalog view 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 the search 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. |
java.lang.String |
getQueryString()
Returns the query string. |
Sorter |
getSorter()
Returns the sorter specified in the search request. |
SorterFactory |
getSorterFactory()
Get the sorter factoy SorterFactory . |
void |
setCategoryUid(long categoryUid)
Sets the category uid. |
void |
setCurrency(java.util.Currency currency)
Sets the currency. |
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 |
setSorterIdStr(java.lang.String sorterIdStr)
Sets the sorter identifier string. |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
CatalogViewRequest addFilter(Filter filter)
filter
- the search filter to add
int compare(CatalogViewRequest searchRequest) throws CatalogViewRequestUnmatchException
searchRequest
- the search request to compare
1 if this search requet and the given search request has same key words, but has more filters.
-1 if this search requet and the given search request has same key words, but has unmatching filters.
CatalogViewRequestUnmatchException
- when this search requet and the given search request have different key wordsjava.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
.
previousSearchRequest
- previous search requestproducts
- the products to filter
long getCategoryUid()
java.util.Currency getCurrency()
java.lang.String getFilterIds()
String
of the list of Filter
.
String
of the list of Filter
java.util.List getFilterQueryStrings()
FilterQueryString
s for all filters specified the search request.
FilterQueryString
sjava.util.List getFilters()
Filter
specified in the search request.
Filter
java.util.Locale getLocale()
int getMaxReturnNumber()
java.lang.String getQueryString()
Sorter getSorter()
SorterFactory getSorterFactory()
SorterFactory
.
void setCategoryUid(long categoryUid) throws EpCatalogViewRequestBindException
categoryUid
- the category uid to set
EpCatalogViewRequestBindException
- in case the given category uid is invalidvoid setCurrency(java.util.Currency currency)
currency
- the currency to setvoid setFiltersIdStr(java.lang.String filtersIdStr) throws EpCatalogViewRequestBindException
filtersIdStr
- the filters identifier strings
EpCatalogViewRequestBindException
- in case the given filters identifier strings are invalidvoid setLocale(java.util.Locale locale)
locale
- the locale to setvoid setMaxReturnNumber(int maxReturnNumber)
maxReturnNumber
- the page number to setvoid setSorterIdStr(java.lang.String sorterIdStr) throws EpCatalogViewRequestBindException
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 |