public class DefaultCommerceResult extends java.lang.Object implements CommerceResult
CommerceResult
.CommerceResult
Constructor and Description |
---|
DefaultCommerceResult() |
Modifier and Type | Method and Description |
---|---|
CommerceQuery |
getActualQuery()
Get the query as interpreted by the current commerce service.
|
java.util.List<CommerceFacet> |
getFacets()
Get a list of facets this query supports.
|
CommerceQuery |
getOriginalQuery()
Get the original query that generated the current result.
|
PaginationInfo |
getPaginationInfo()
Get pagination information, like page number, total results, ...
|
java.util.List<Product> |
getProducts()
Get the current range of products returned by this query.
|
java.util.List<CommerceSort> |
getSorts()
Get the available sort fields for this query.
|
void |
setActualQuery(CommerceQuery actualQuery) |
void |
setFacets(java.util.List<? extends CommerceFacet> facets) |
void |
setOriginalQuery(CommerceQuery originalQuery) |
void |
setPaginationInfo(PaginationInfo paginationInfo) |
void |
setProducts(java.util.List<? extends Product> products) |
void |
setSorts(java.util.List<? extends CommerceSort> sorts) |
public PaginationInfo getPaginationInfo()
getPaginationInfo
in interface CommerceResult
public java.util.List<CommerceSort> getSorts()
getSorts
in interface CommerceResult
public java.util.List<Product> getProducts()
getProducts
in interface CommerceResult
public CommerceQuery getOriginalQuery()
getOriginalQuery
in interface CommerceResult
public CommerceQuery getActualQuery()
null
here if
they don't have that information.getActualQuery
in interface CommerceResult
public java.util.List<CommerceFacet> getFacets()
getFacets
in interface CommerceResult
public void setPaginationInfo(PaginationInfo paginationInfo)
public void setSorts(java.util.List<? extends CommerceSort> sorts)
public void setFacets(java.util.List<? extends CommerceFacet> facets)
public void setProducts(java.util.List<? extends Product> products)
public void setOriginalQuery(CommerceQuery originalQuery)
public void setActualQuery(CommerceQuery actualQuery)
Copyright © 2010 - 2020 Adobe. All Rights Reserved