public class AdminProductSearch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
categoryId
category Id
|
private java.util.Calendar |
dateAddedFrom
date Added From
|
private java.util.Calendar |
dateAddedTo
date Added To
|
private java.util.Calendar |
dateAvailableFrom
dateAvailableFrom
|
private java.util.Calendar |
dateAvailableTo
dateAvailableTo
|
private java.util.Calendar |
dateLastModifiedFrom
dateLastModifiedFrom
|
private java.util.Calendar |
dateLastModifiedTo
dateLastModifiedTo
|
private java.util.Calendar |
endDateFrom
endDateFrom
|
private java.util.Calendar |
endDateTo
endDateTo
|
private java.util.Calendar |
expiryDateFrom
expiryDateFrom
|
private java.util.Calendar |
expiryDateTo
expiryDateTo
|
private boolean |
giftCertificates
gift Certificates
|
private int |
manufacturerId
manufacturer Id
|
private boolean |
onlyProductsExpected
only Products Expected
|
private boolean |
onlySpecials
only Specials
|
private int |
paymentScheduleId
Payment Schedule Id
|
private java.math.BigDecimal |
priceFrom
price From
|
private java.math.BigDecimal |
priceTo
price To
|
private int |
productId
product Id
|
private int |
productType
Product Type
|
private java.lang.String |
productUUID
UUID used to control synchronization of product copies in different stores
|
private int |
promotionId
Promotion Id
|
static int |
SEARCH_ALL
SEARCH_ALL: Used to initialize some constraints such as manufacturerId and categoryId.
|
static int |
SEARCH_IN_PRODUCT_DESCRIPTION
SEARCH_IN_PRODUCT_DESCRIPTION: Used to set
whereToSearch so that the product
description is searched as well as other attributes such as name, manufacturer and model. |
private boolean |
searchCategoryTree
Only used when categoryId is set.
|
private java.lang.String |
searchText
searchText
|
private boolean |
searchTextIgnoreCase
searchText Ignore Case
|
private int |
searchTextRule
searchTextRule
|
private java.lang.String |
sku
SKU
|
private boolean |
skuIgnoreCase
sku Ignore Case
|
private int |
skuRule
SKU Rule
|
private java.util.Calendar |
startDateFrom
startDateFrom
|
private java.util.Calendar |
startDateTo
startDateTo
|
private int |
whereToSearch
where to search indicator
|
Constructor and Description |
---|
AdminProductSearch()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getCategoryId()
Used to filter products by category and all sub categories of selected category.
|
java.util.Calendar |
getDateAddedFrom()
When not null, only products which were added to the catalog on this date or after this date
are returned.
|
java.util.Calendar |
getDateAddedTo()
When not null, only products which were added to the catalog on this date or before this date
are returned.
|
java.util.Calendar |
getDateAvailableFrom()
When not null, only products which are available on this date or after this date are
returned.
|
java.util.Calendar |
getDateAvailableTo()
When not null, only products which are available on this date or before this date are
returned.
|
java.util.Calendar |
getDateLastModifiedFrom()
When not null, only products which have been modified on this date or after this date are
returned.
|
java.util.Calendar |
getDateLastModifiedTo()
When not null, only products which have been modified on this date or after before date are
returned.
|
java.util.Calendar |
getEndDateFrom()
Used for Bookable Products
|
java.util.Calendar |
getEndDateTo()
Used for Bookable Products
|
java.util.Calendar |
getExpiryDateFrom()
When not null, only products which expire on this date or after this date are returned.
|
java.util.Calendar |
getExpiryDateTo()
When not null, only products which expire on this date or before this date are returned.
|
int |
getManufacturerId()
Used to filter products by manufacturer.
|
int |
getPaymentScheduleId()
Used to only return products if they are associated to this payment schedule.
|
java.math.BigDecimal |
getPriceFrom()
When not null, only products with a price greater than or equal to this price are returned.
|
java.math.BigDecimal |
getPriceTo()
When not null, only products with a price less than or equal to this price are returned.
|
int |
getProductId()
Used to only return a single product identified by this id.
|
int |
getProductType()
Used to filter products by productType.
|
java.lang.String |
getProductUUID()
UUID used to control synchronization of product copies in different stores
|
int |
getPromotionId()
Used to only return products if they are in a promotion.
|
static int |
getSEARCH_ALL() |
java.lang.String |
getSearchText()
When not null, only products containing this search text are returned.
|
int |
getSearchTextRule()
The rule for the search.
|
java.lang.String |
getSku()
Used to filter products by SKU.
|
int |
getSkuRule()
The rule for the search.
|
java.util.Calendar |
getStartDateFrom()
Used for Bookable Products
|
java.util.Calendar |
getStartDateTo()
Used for Bookable Products
|
int |
getWhereToSearch()
When set to 0, the following attributes are searched for the searchText:
Product Name
Manufacturer Name
Product Model
When set to AdminProductSearch.SEARCH_IN_PRODUCT_DESCRIPTION then the product description is
also searched.
|
boolean |
isGiftCertificates()
Used when searching for products within a promotion.
|
boolean |
isOnlyProductsExpected()
When set, only products that have an available date in the future, are returned.
|
boolean |
isOnlySpecials()
When set, only products that have a special price, are returned.
|
boolean |
isSearchCategoryTree()
Only used when categoryId is set.
|
boolean |
isSearchTextIgnoreCase() |
boolean |
isSkuIgnoreCase() |
void |
setCategoryId(int categoryId)
Used to filter products by category and all sub categories of selected category.
|
void |
setDateAddedFrom(java.util.Calendar dateAddedFrom)
When not null, only products which were added to the catalog on this date or after this date
are returned.
|
void |
setDateAddedTo(java.util.Calendar dateAddedTo)
When not null, only products which were added to the catalog on this date or before this date
are returned.
|
void |
setDateAvailableFrom(java.util.Calendar dateAvailableFrom)
When not null, only products which are available on this date or after this date are
returned.
|
void |
setDateAvailableTo(java.util.Calendar dateAvailableTo)
When not null, only products which are available on this date or before this date are
returned.
|
void |
setDateLastModifiedFrom(java.util.Calendar dateLastModifiedFrom)
When not null, only products which have been modified on this date or after this date are
returned.
|
void |
setDateLastModifiedTo(java.util.Calendar dateLastModifiedTo)
When not null, only products which have been modified on this date or after before date are
returned.
|
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)
When not null, only products which expire on this date or after this date are returned.
|
void |
setExpiryDateTo(java.util.Calendar expiryDateTo)
When not null, only products which expire on this date or before this date are returned.
|
void |
setGiftCertificates(boolean giftCertificates)
Used when searching for products within a promotion.
|
void |
setManufacturerId(int manufacturerId)
Used to filter products by manufacturer.
|
void |
setOnlyProductsExpected(boolean onlyProductsExpected)
When set, only products that have an available date in the future, are returned.
|
void |
setOnlySpecials(boolean onlySpecials)
When set, only products that have a special price, are returned.
|
void |
setPaymentScheduleId(int paymentScheduleId)
Used to only return products if they are associated to this payment schedule.
|
void |
setPriceFrom(java.math.BigDecimal priceFrom)
When not null, only products with a price greater than or equal to this price are returned.
|
void |
setPriceTo(java.math.BigDecimal priceTo)
When not null, only products with a price less than or equal to this price are returned.
|
void |
setProductId(int productId)
Used to only return a single product identified by this id.
|
void |
setProductType(int productType)
Used to filter products by productType.
|
void |
setProductUUID(java.lang.String productUUID)
UUID used to control synchronization of product copies in different stores
|
void |
setPromotionId(int promotionId)
Used to only return products if they are in a promotion.
|
void |
setSearchCategoryTree(boolean searchCategoryTree)
Only used when categoryId is set.
|
void |
setSearchText(java.lang.String searchText)
When not null, only products containing this search text are returned.
|
void |
setSearchTextIgnoreCase(boolean searchTextIgnoreCase) |
void |
setSearchTextRule(int searchTextRule)
The rule for the search.
|
void |
setSku(java.lang.String sku)
Used to filter products by SKU.
|
void |
setSkuIgnoreCase(boolean skuIgnoreCase) |
void |
setSkuRule(int skuRule)
The rule for the search.
|
void |
setStartDateFrom(java.util.Calendar startDateFrom)
Used for Bookable Products
|
void |
setStartDateTo(java.util.Calendar startDateTo)
Used for Bookable Products
|
void |
setWhereToSearch(int whereToSearch)
When set to 0, the following attributes are searched for the searchText:
Product Name
Manufacturer Name
Product Model
When set to AdminProductSearch.SEARCH_IN_PRODUCT_DESCRIPTION then the product description is
also searched.
|
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
private java.lang.String sku
private int skuRule
private boolean skuIgnoreCase
private java.math.BigDecimal priceFrom
private java.math.BigDecimal priceTo
private java.util.Calendar dateAddedFrom
private java.util.Calendar dateAddedTo
private java.util.Calendar dateAvailableFrom
private java.util.Calendar dateAvailableTo
private java.util.Calendar dateLastModifiedFrom
private java.util.Calendar dateLastModifiedTo
private java.util.Calendar startDateFrom
private java.util.Calendar startDateTo
private java.util.Calendar endDateFrom
private java.util.Calendar endDateTo
private java.util.Calendar expiryDateFrom
private java.util.Calendar expiryDateTo
private int productId
private int manufacturerId
private int categoryId
private boolean searchCategoryTree
private int whereToSearch
private java.lang.String searchText
private int searchTextRule
private boolean searchTextIgnoreCase
private boolean onlySpecials
private boolean onlyProductsExpected
private int promotionId
private int paymentScheduleId
private boolean giftCertificates
private int productType
private java.lang.String productUUID
public static final int SEARCH_IN_PRODUCT_DESCRIPTION
whereToSearch
so that the product
description is searched as well as other attributes such as name, manufacturer and model.public static final int SEARCH_ALL
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public int getCategoryId()
public void setCategoryId(int categoryId)
categoryId
- The categoryId to set.public int getManufacturerId()
public void setManufacturerId(int manufacturerId)
manufacturerId
- The manufacturerId to set.public java.math.BigDecimal getPriceFrom()
public void setPriceFrom(java.math.BigDecimal priceFrom)
priceFrom
- The priceFrom to set.public java.math.BigDecimal getPriceTo()
public void setPriceTo(java.math.BigDecimal priceTo)
priceTo
- The priceTo to set.public java.lang.String getSearchText()
whereToSearch
determines which attributes of the product are searched.public void setSearchText(java.lang.String searchText)
whereToSearch
determines which attributes of the product are searched.searchText
- The searchText to set.public int getWhereToSearch()
public void setWhereToSearch(int whereToSearch)
whereToSearch
- The whereToSearch to set.public java.util.Calendar getDateAddedFrom()
public void setDateAddedFrom(java.util.Calendar dateAddedFrom)
dateAddedFrom
- The dateAddedFrom to set.public java.util.Calendar getDateAddedTo()
public void setDateAddedTo(java.util.Calendar dateAddedTo)
dateAddedTo
- The dateAddedTo to set.public static int getSEARCH_ALL()
public boolean isOnlySpecials()
public void setOnlySpecials(boolean onlySpecials)
onlySpecials
- The onlySpecials to set.public boolean isOnlyProductsExpected()
public void setOnlyProductsExpected(boolean onlyProductsExpected)
onlyProductsExpected
- The onlyProductsExpected to set.public int getPromotionId()
public void setPromotionId(int promotionId)
promotionId
- The promotionId to set.public java.lang.String getSku()
public void setSku(java.lang.String sku)
sku
- The sku to set.public int getProductType()
public void setProductType(int productType)
productType
- The productType to set.public boolean isGiftCertificates()
public void setGiftCertificates(boolean giftCertificates)
giftCertificates
- the giftCertificates to setpublic int getSkuRule()
public void setSkuRule(int skuRule)
skuRule
- the skuRule to setpublic int getSearchTextRule()
public void setSearchTextRule(int searchTextRule)
searchTextRule
- the searchTextRule to setpublic java.util.Calendar getDateAvailableFrom()
public void setDateAvailableFrom(java.util.Calendar dateAvailableFrom)
dateAvailableFrom
- the dateAvailableFrom to setpublic java.util.Calendar getDateAvailableTo()
public void setDateAvailableTo(java.util.Calendar dateAvailableTo)
dateAvailableTo
- the dateAvailableTo to setpublic java.util.Calendar getDateLastModifiedFrom()
public void setDateLastModifiedFrom(java.util.Calendar dateLastModifiedFrom)
dateLastModifiedFrom
- the dateLastModifiedFrom to setpublic java.util.Calendar getDateLastModifiedTo()
public void setDateLastModifiedTo(java.util.Calendar dateLastModifiedTo)
dateLastModifiedTo
- the dateLastModifiedTo to setpublic java.util.Calendar getExpiryDateFrom()
public void setExpiryDateFrom(java.util.Calendar expiryDateFrom)
expiryDateFrom
- the expiryDateFrom to setpublic java.util.Calendar getExpiryDateTo()
public void setExpiryDateTo(java.util.Calendar expiryDateTo)
expiryDateTo
- the expiryDateTo to setpublic int getPaymentScheduleId()
public void setPaymentScheduleId(int paymentScheduleId)
paymentScheduleId
- the paymentScheduleId to setpublic boolean isSearchCategoryTree()
public void setSearchCategoryTree(boolean searchCategoryTree)
searchCategoryTree
- the searchCategoryTree to setpublic java.util.Calendar getStartDateFrom()
public void setStartDateFrom(java.util.Calendar startDateFrom)
startDateFrom
- the startDateFrom to setpublic java.util.Calendar getStartDateTo()
public void setStartDateTo(java.util.Calendar startDateTo)
startDateTo
- the startDateTo to setpublic java.util.Calendar getEndDateFrom()
public void setEndDateFrom(java.util.Calendar endDateFrom)
endDateFrom
- the endDateFrom to setpublic java.util.Calendar getEndDateTo()
public void setEndDateTo(java.util.Calendar endDateTo)
endDateTo
- the endDateTo to setpublic java.lang.String getProductUUID()
public void setProductUUID(java.lang.String productUUID)
productUUID
- the productUUID to setpublic boolean isSearchTextIgnoreCase()
public void setSearchTextIgnoreCase(boolean searchTextIgnoreCase)
searchTextIgnoreCase
- the searchTextIgnoreCase to setpublic boolean isSkuIgnoreCase()
public void setSkuIgnoreCase(boolean skuIgnoreCase)
skuIgnoreCase
- the skuIgnoreCase to setpublic int getProductId()
public void setProductId(int productId)
productId
- the productId to setCopyright © 2018 DS Data Systems UK Ltd.