|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.ProductSearch
public class ProductSearch
ProductSearch object
| Field Summary | |
|---|---|
static int |
NOT_SET
NOT_SET = -1 |
static int |
SEARCH_ALL
SEARCH_ALL = -100 |
static int |
SEARCH_IN_PRODUCT_DESCRIPTION
SEARCH_IN_PRODUCT_DESCRIPTION |
| Constructor Summary | |
|---|---|
ProductSearch()
Constructor |
|
| Method Summary | |
|---|---|
int |
getCategoryId()
Used as a constraint when not set to ProductSearch.SEARCH_ALL and when categoryIds is null or empty. |
int[] |
getCategoryIds()
When not null and containing data, the category ids in this array are used to provide constraints and the categoryId attribute is ignored. |
java.util.Calendar |
getDateAddedFrom()
|
java.util.Calendar |
getDateAddedTo()
|
java.util.Calendar |
getDateAvailableFrom()
The date available used for the search is that for the main product and not for the product variations. |
java.util.Calendar |
getDateAvailableTo()
The date available used for the search is that for the main product and not for the product variations. |
java.util.Calendar |
getEndDateFrom()
Used for Bookable Products |
java.util.Calendar |
getEndDateTo()
Used for Bookable Products |
java.util.Calendar |
getExpiryDateFrom()
Used to search for products based on the expiry date |
java.util.Calendar |
getExpiryDateTo()
Used to search for products based on the expiry date |
int |
getManufacturerId()
Used as a constraint when not set to ProductSearch.SEARCH_ALL and when manufacturerIds is null or empty. |
int[] |
getManufacturerIds()
When not null and containing data, the manufacturer ids in this array are used to provide constraints and the manufacturerId attribute is ignored. |
java.lang.Integer |
getOrderedEqual()
Returns all products that have been ordered a number of times equal to the value. |
java.lang.Integer |
getOrderedGreaterThan()
Returns all products that have been ordered more times than the value. |
java.lang.Integer |
getOrderedLessThan()
Returns all products that have been ordered less times than the value. |
java.util.Calendar |
getOverlapEndDate()
When overlapStart and end dates are both set, a search is done for all products that have start and end dates that make them overlap the dates set in this search object. |
java.util.Calendar |
getOverlapStartDate()
When overlapStart and end dates are both set, a search is done for all products that have start and end dates that make them overlap the dates set in this search object. |
java.math.BigDecimal |
getPriceFrom()
|
java.math.BigDecimal |
getPriceTo()
|
int |
getProductType()
|
java.lang.Integer |
getQuantityEqual()
Returns all products with a quantity equal to the value. |
java.lang.Integer |
getQuantityGreaterThan()
Returns all products with a quantity greater than the value. |
java.lang.Integer |
getQuantityLessThan()
Returns all products with a quantity less than the value. |
java.math.BigDecimal |
getRatingEqual()
Returns all products with a rating equal to the value. |
java.math.BigDecimal |
getRatingGreaterThan()
Returns all products with a rating greater than the value. |
java.math.BigDecimal |
getRatingLessThan()
Returns all products with a rating less than the value. |
static int |
getSEARCH_ALL()
|
java.lang.String |
getSearchText()
|
int |
getSearchTextRule()
The rule for the search. |
SnippetOptionsIf |
getSnippetOptions()
Used to configure fragments of text returned by the search engine that surround the keywords. |
java.util.Calendar |
getStartDateFrom()
Used for Bookable Products |
java.util.Calendar |
getStartDateTo()
Used for Bookable Products |
java.lang.String[] |
getStoresToSearch()
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
TagGroupIf[] |
getTagGroups()
For a single tag group, all products are returned that have any one of the tags in the group (i.e. |
int |
getWhereToSearch()
When set to 0, the text search is done only on the product name. |
boolean |
isFillDescription()
Fills the product description attribute with the description in the chosen language. |
boolean |
isReturnCategoryFacets()
When set, the result of a product search using SOLR contains the category facets including the number of products per category. |
boolean |
isReturnCustomFacets()
When set, the result of a product search using SOLR contains the custom facets. |
boolean |
isReturnManufacturerFacets()
When set, the result of a product search using SOLR contains the manufacturer facets including the number of products per manufacturer. |
boolean |
isSearchAllStores()
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
boolean |
isSearchInSubCats()
Determines whether products are searched for in child categories when there are category constraints. |
void |
setCategoryId(int categoryId)
Used as a constraint when not set to ProductSearch.SEARCH_ALL and when categoryIds is null or empty. |
void |
setCategoryIds(int[] categoryIds)
When not null and containing data, the category ids in this array are used to provide constraints and the categoryId attribute is ignored. |
void |
setDateAddedFrom(java.util.Calendar dateAddedFrom)
|
void |
setDateAddedTo(java.util.Calendar dateAddedTo)
|
void |
setDateAvailableFrom(java.util.Calendar dateAvailableFrom)
The date available used for the search is that for the main product and not for the product variations. |
void |
setDateAvailableTo(java.util.Calendar dateAvailableTo)
The date available used for the search is that for the main product and not for the product variations. |
void |
setEndDateFrom(java.util.Calendar endDateFrom)
Used for Bookable Products |
void |
setEndDateTo(java.util.Calendar endDateTo)
Used for Bookable Products |
void |
setExpiryDateFrom(java.util.Calendar expiryDateFrom)
Used to search for products based on the expiry date |
void |
setExpiryDateTo(java.util.Calendar expiryDateTo)
Used to search for products based on the expiry date |
void |
setFillDescription(boolean fillDescription)
Fills the product description attribute with the description in the chosen language. |
void |
setManufacturerId(int manufacturerId)
Used as a constraint when not set to ProductSearch.SEARCH_ALL and when manufacturerIds is null or empty. |
void |
setManufacturerIds(int[] manufacturerIds)
When not null and containing data, the manufacturer ids in this array are used to provide constraints and the manufacturerId attribute is ignored. |
void |
setOrderedEqual(java.lang.Integer orderedEqual)
Returns all products that have been ordered a number of times equal to the value. |
void |
setOrderedGreaterThan(java.lang.Integer orderedGreaterThan)
Returns all products that have been ordered more times than the value. |
void |
setOrderedLessThan(java.lang.Integer orderedLessThan)
Returns all products that have been ordered less times than the value. |
void |
setOverlapEndDate(java.util.Calendar overlapEndDate)
When overlapStart and end dates are both set, a search is done for all products that have start and end dates that make them overlap the dates set in this search object. |
void |
setOverlapStartDate(java.util.Calendar overlapStartDate)
When overlapStart and end dates are both set, a search is done for all products that have start and end dates that make them overlap the dates set in this search object. |
void |
setPriceFrom(java.math.BigDecimal priceFrom)
|
void |
setPriceTo(java.math.BigDecimal priceTo)
|
void |
setProductType(int productType)
Set this to search for products with a specific product type. |
void |
setQuantityEqual(java.lang.Integer quantityEqual)
Returns all products with a quantity equal to the value. |
void |
setQuantityGreaterThan(java.lang.Integer quantityGreaterThan)
Returns all products with a quantity greater than the value. |
void |
setQuantityLessThan(java.lang.Integer quantityLessThan)
Returns all products with a quantity less than the value. |
void |
setRatingEqual(java.math.BigDecimal ratingEqual)
Returns all products with a rating equal to the value. |
void |
setRatingGreaterThan(java.math.BigDecimal ratingGreaterThan)
Returns all products with a rating greater than the value. |
void |
setRatingLessThan(java.math.BigDecimal ratingLessThan)
Returns all products with a rating less than the value. |
void |
setReturnCategoryFacets(boolean returnCategoryFacets)
When set, the result of a product search using SOLR contains the category facets including the number of products per category. |
void |
setReturnCustomFacets(boolean returnCustomFacets)
When set, the result of a product search using SOLR contains the custom facets. |
void |
setReturnManufacturerFacets(boolean returnManufacturerFacets)
When set, the result of a product search using SOLR contains the manufacturer facets including the number of products per manufacturer. |
void |
setSearchAllStores(boolean searchAllStores)
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
void |
setSearchInSubCats(boolean searchInSubCats)
Determines whether products are searched for in child categories when there are category constraints. |
void |
setSearchText(java.lang.String searchText)
|
void |
setSearchTextRule(int searchTextRule)
The rule for the search. |
void |
setSnippetOptions(SnippetOptionsIf snippetOptions)
Used to configure fragments of text returned by the search engine that surround the keywords. |
void |
setStartDateFrom(java.util.Calendar startDateFrom)
Used for Bookable Products |
void |
setStartDateTo(java.util.Calendar startDateTo)
Used for Bookable Products |
void |
setStoresToSearch(java.lang.String[] storesToSearch)
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
void |
setTagGroups(TagGroupIf[] tagGroups)
For a single tag group, all products are returned that have any one of the tags in the group (i.e. |
void |
setWhereToSearch(int whereToSearch)
When set to 0, the text search is done only on the product name. |
java.lang.String |
toString()
|
java.lang.String |
toStringBrief()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SEARCH_IN_PRODUCT_DESCRIPTION
public static final int SEARCH_ALL
public static final int NOT_SET
| Constructor Detail |
|---|
public ProductSearch()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringBrief()
public int getCategoryId()
getCategoryId in interface ProductSearchIfpublic void setCategoryId(int categoryId)
setCategoryId in interface ProductSearchIfcategoryId - The categoryId to set.public int getManufacturerId()
getManufacturerId in interface ProductSearchIfpublic void setManufacturerId(int manufacturerId)
setManufacturerId in interface ProductSearchIfmanufacturerId - The manufacturerId to set.public java.math.BigDecimal getPriceFrom()
getPriceFrom in interface ProductSearchIfpublic void setPriceFrom(java.math.BigDecimal priceFrom)
setPriceFrom in interface ProductSearchIfpriceFrom - The priceFrom to set.public java.math.BigDecimal getPriceTo()
getPriceTo in interface ProductSearchIfpublic void setPriceTo(java.math.BigDecimal priceTo)
setPriceTo in interface ProductSearchIfpriceTo - The priceTo to set.public java.lang.String getSearchText()
getSearchText in interface ProductSearchIfpublic void setSearchText(java.lang.String searchText)
setSearchText in interface ProductSearchIfsearchText - The searchText to set.public int getWhereToSearch()
ProductSearchIf
getWhereToSearch in interface ProductSearchIfpublic void setWhereToSearch(int whereToSearch)
ProductSearchIf
setWhereToSearch in interface ProductSearchIfwhereToSearch - The whereToSearch to set.public java.util.Calendar getDateAddedFrom()
getDateAddedFrom in interface ProductSearchIfpublic void setDateAddedFrom(java.util.Calendar dateAddedFrom)
setDateAddedFrom in interface ProductSearchIfdateAddedFrom - The dateAddedFrom to set.public java.util.Calendar getDateAddedTo()
getDateAddedTo in interface ProductSearchIfpublic void setDateAddedTo(java.util.Calendar dateAddedTo)
setDateAddedTo in interface ProductSearchIfdateAddedTo - The dateAddedTo to set.public static int getSEARCH_ALL()
public boolean isSearchInSubCats()
isSearchInSubCats in interface ProductSearchIfpublic void setSearchInSubCats(boolean searchInSubCats)
setSearchInSubCats in interface ProductSearchIfsearchInSubCats - The searchInSubCats to set.public TagGroupIf[] getTagGroups()
ProductSearchIfFor example in the case of digital cameras, one tag group could contain tags for the number of megapixels and another group could contain tags for the battery type. Using the above logic it is straightforward to search for a camera that has a 4MPixel OR a 6MPixel sensor AND has a rechargeable battery.
getTagGroups in interface ProductSearchIfpublic void setTagGroups(TagGroupIf[] tagGroups)
ProductSearchIfFor example in the case of digital cameras, one tag group could contain tags for the number of megapixels and another group could contain tags for the battery type. Using the above logic it is straightforward to search for a camera that has a 4MPixel OR a 6MPixel sensor AND has a rechargeable battery.
setTagGroups in interface ProductSearchIftagGroups - The tagGroups to set.public boolean isSearchAllStores()
isSearchAllStores in interface ProductSearchIfpublic void setSearchAllStores(boolean searchAllStores)
setSearchAllStores in interface ProductSearchIfsearchAllStores - A boolean that specifies whether to search in all stores.public java.lang.String[] getStoresToSearch()
searchAllStores is set, then this array is ignored.
getStoresToSearch in interface ProductSearchIfpublic void setStoresToSearch(java.lang.String[] storesToSearch)
searchAllStores is set, then this array is ignored.
setStoresToSearch in interface ProductSearchIfstoresToSearch - public SnippetOptionsIf getSnippetOptions()
getSnippetOptions in interface ProductSearchIfpublic void setSnippetOptions(SnippetOptionsIf snippetOptions)
setSnippetOptions in interface ProductSearchIfsnippetOptions - the snippetOptions to setpublic java.math.BigDecimal getRatingGreaterThan()
getRatingGreaterThan in interface ProductSearchIfpublic void setRatingGreaterThan(java.math.BigDecimal ratingGreaterThan)
setRatingGreaterThan in interface ProductSearchIfratingGreaterThan - the ratingGreaterThan to setpublic java.math.BigDecimal getRatingLessThan()
getRatingLessThan in interface ProductSearchIfpublic void setRatingLessThan(java.math.BigDecimal ratingLessThan)
setRatingLessThan in interface ProductSearchIfratingLessThan - the ratingLessThan to setpublic java.math.BigDecimal getRatingEqual()
getRatingEqual in interface ProductSearchIfpublic void setRatingEqual(java.math.BigDecimal ratingEqual)
setRatingEqual in interface ProductSearchIfratingEqual - the ratingEqual to setpublic java.util.Calendar getDateAvailableTo()
ProductSearchIf
getDateAvailableTo in interface ProductSearchIfpublic void setDateAvailableTo(java.util.Calendar dateAvailableTo)
ProductSearchIf
setDateAvailableTo in interface ProductSearchIfdateAvailableTo - the dateAvailableTo to setpublic java.util.Calendar getDateAvailableFrom()
ProductSearchIf
getDateAvailableFrom in interface ProductSearchIfpublic void setDateAvailableFrom(java.util.Calendar dateAvailableFrom)
ProductSearchIf
setDateAvailableFrom in interface ProductSearchIfdateAvailableFrom - the dateAvailableFrom to setpublic boolean isFillDescription()
ProductSearchIf
isFillDescription in interface ProductSearchIfpublic void setFillDescription(boolean fillDescription)
ProductSearchIf
setFillDescription in interface ProductSearchIffillDescription - the fillDescription to setpublic int getSearchTextRule()
ProductSearchIf
getSearchTextRule in interface ProductSearchIfpublic void setSearchTextRule(int searchTextRule)
ProductSearchIf
setSearchTextRule in interface ProductSearchIfsearchTextRule - the searchTextRule to setpublic java.util.Calendar getExpiryDateTo()
ProductSearchIf
getExpiryDateTo in interface ProductSearchIfpublic void setExpiryDateTo(java.util.Calendar expiryDateTo)
ProductSearchIf
setExpiryDateTo in interface ProductSearchIfexpiryDateTo - the expiryDateTo to setpublic java.util.Calendar getExpiryDateFrom()
ProductSearchIf
getExpiryDateFrom in interface ProductSearchIfpublic void setExpiryDateFrom(java.util.Calendar expiryDateFrom)
ProductSearchIf
setExpiryDateFrom in interface ProductSearchIfexpiryDateFrom - the expiryDateFrom to setpublic java.lang.Integer getQuantityGreaterThan()
ProductSearchIf
getQuantityGreaterThan in interface ProductSearchIfpublic void setQuantityGreaterThan(java.lang.Integer quantityGreaterThan)
ProductSearchIf
setQuantityGreaterThan in interface ProductSearchIfquantityGreaterThan - the quantityGreaterThan to setpublic java.lang.Integer getQuantityLessThan()
ProductSearchIf
getQuantityLessThan in interface ProductSearchIfpublic void setQuantityLessThan(java.lang.Integer quantityLessThan)
ProductSearchIf
setQuantityLessThan in interface ProductSearchIfquantityLessThan - the quantityLessThan to setpublic java.lang.Integer getQuantityEqual()
ProductSearchIf
getQuantityEqual in interface ProductSearchIfpublic void setQuantityEqual(java.lang.Integer quantityEqual)
ProductSearchIf
setQuantityEqual in interface ProductSearchIfquantityEqual - the quantityEqual to setpublic java.util.Calendar getStartDateFrom()
getStartDateFrom in interface ProductSearchIfpublic void setStartDateFrom(java.util.Calendar startDateFrom)
setStartDateFrom in interface ProductSearchIfstartDateFrom - the startDateFrom to setpublic java.util.Calendar getStartDateTo()
getStartDateTo in interface ProductSearchIfpublic void setStartDateTo(java.util.Calendar startDateTo)
setStartDateTo in interface ProductSearchIfstartDateTo - the startDateTo to setpublic java.util.Calendar getEndDateFrom()
getEndDateFrom in interface ProductSearchIfpublic void setEndDateFrom(java.util.Calendar endDateFrom)
setEndDateFrom in interface ProductSearchIfendDateFrom - the endDateFrom to setpublic java.util.Calendar getEndDateTo()
getEndDateTo in interface ProductSearchIfpublic void setEndDateTo(java.util.Calendar endDateTo)
setEndDateTo in interface ProductSearchIfendDateTo - the endDateTo to setpublic java.util.Calendar getOverlapStartDate()
getOverlapStartDate in interface ProductSearchIfpublic void setOverlapStartDate(java.util.Calendar overlapStartDate)
setOverlapStartDate in interface ProductSearchIfoverlapStartDate - the overlapStartDate to setpublic java.util.Calendar getOverlapEndDate()
getOverlapEndDate in interface ProductSearchIfpublic void setOverlapEndDate(java.util.Calendar overlapEndDate)
setOverlapEndDate in interface ProductSearchIfoverlapEndDate - the overlapEndDate to setpublic int getProductType()
getProductType in interface ProductSearchIfpublic void setProductType(int productType)
ProductSearchIf
setProductType in interface ProductSearchIfproductType - the productType to setpublic boolean isReturnManufacturerFacets()
isReturnManufacturerFacets in interface ProductSearchIfpublic void setReturnManufacturerFacets(boolean returnManufacturerFacets)
setReturnManufacturerFacets in interface ProductSearchIfreturnManufacturerFacets - the returnManufacturerFacets to setpublic boolean isReturnCategoryFacets()
isReturnCategoryFacets in interface ProductSearchIfpublic void setReturnCategoryFacets(boolean returnCategoryFacets)
setReturnCategoryFacets in interface ProductSearchIfreturnCategoryFacets - the returnCategoryFacets to setpublic int[] getManufacturerIds()
getManufacturerIds in interface ProductSearchIfpublic void setManufacturerIds(int[] manufacturerIds)
setManufacturerIds in interface ProductSearchIfmanufacturerIds - the manufacturerIds to setpublic int[] getCategoryIds()
getCategoryIds in interface ProductSearchIfpublic void setCategoryIds(int[] categoryIds)
setCategoryIds in interface ProductSearchIfcategoryIds - the categoryIds to setpublic java.lang.Integer getOrderedGreaterThan()
getOrderedGreaterThan in interface ProductSearchIfpublic void setOrderedGreaterThan(java.lang.Integer orderedGreaterThan)
setOrderedGreaterThan in interface ProductSearchIforderedGreaterThan - the orderedGreaterThan to setpublic java.lang.Integer getOrderedLessThan()
getOrderedLessThan in interface ProductSearchIfpublic void setOrderedLessThan(java.lang.Integer orderedLessThan)
setOrderedLessThan in interface ProductSearchIforderedLessThan - the orderedLessThan to setpublic java.lang.Integer getOrderedEqual()
getOrderedEqual in interface ProductSearchIfpublic void setOrderedEqual(java.lang.Integer orderedEqual)
setOrderedEqual in interface ProductSearchIforderedEqual - the orderedEqual to setpublic boolean isReturnCustomFacets()
isReturnCustomFacets in interface ProductSearchIfpublic void setReturnCustomFacets(boolean returnCustomFacets)
setReturnCustomFacets in interface ProductSearchIfreturnCustomFacets - the returnCustomFacets to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||