public class ProductSearch1 extends java.lang.Object implements ProductSearchInterface
ProductSearchInterface that searches products
using the ProductController.getMatchingProducts method.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
ProductSearch1()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<Product> |
getMatchingProducts(FlashServletContext ctx,
java.lang.String searchString,
java.util.ArrayList<java.lang.String[]> searchAttributes)
Returns a list of products that match the given search criteria and are
in the session user's catalog.
|
java.util.ArrayList<Product> |
getMatchingProducts(FlashServletContext ctx,
java.lang.String searchString,
java.util.ArrayList<java.lang.String[]> searchAttributes,
java.lang.String catcat,
int maxhits)
Returns a list of products that match the given search criteria and are
in the given catalog category.
|
private static final long serialVersionUID
public java.util.ArrayList<Product> getMatchingProducts(FlashServletContext ctx, java.lang.String searchString, java.util.ArrayList<java.lang.String[]> searchAttributes)
getMatchingProducts in interface ProductSearchInterfacectx - (FlashServletContext) The current servlet context.searchString - (String) The search criteria.searchAttributes - (ArrayList) The extended attributes search
criteria, a list of String[] where element 0 is
attribute code, and 1 is relation.public java.util.ArrayList<Product> getMatchingProducts(FlashServletContext ctx, java.lang.String searchString, java.util.ArrayList<java.lang.String[]> searchAttributes, java.lang.String catcat, int maxhits)
getMatchingProducts in interface ProductSearchInterfacectx - (FlashServletContext) The current servlet context.searchString - (String) The search criteria.searchAttributes - (ArrayList) The extended attributes search
criteria, a list of String[] where element 0 is
attribute code, and 1 is relation.catcat - (String) The catalog category for the results.maxhits - (int) The maximum number of matches. A 0 (zero)
indicates no maximum.