com.elasticpath.domain.search.impl
Class ProductSearchCriteriaImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.search.impl.AbstractSearchCriteriaImpl
              extended by com.elasticpath.domain.search.impl.ProductSearchCriteriaImpl
All Implemented Interfaces:
EpDomain, Persistence, ProductSearchCriteria, SearchCriteria, Transient, java.io.Serializable

public class ProductSearchCriteriaImpl
extends AbstractSearchCriteriaImpl
implements ProductSearchCriteria

A criteria for advanced product search.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
serialVersionUID
 
Constructor Summary
ProductSearchCriteriaImpl()
           
 
Method Summary
 java.lang.String getBrandCode()
          Returns the brand code.
 java.util.Set getCategoryUids()
          Returns a set of category uids.
 java.lang.String getKeyword()
          Returns the key word.
 boolean isActiveOnly()
          Returns true if searching only for active products.
 boolean isInActiveOnly()
          Returns true if searching only for inactive products.
 void setActiveOnly(boolean activeOnlyFlag)
          Sets the active-only flag to true if only searching for active products.
 void setBrandCode(java.lang.String brandCode)
          Sets the brand code.
 void setCategoryUids(java.util.Set categoryUids)
          Sets the set of category uids.
 void setInActiveOnly(boolean inActiveOnlyFlag)
          Sets the inactive-only flag to true if only searching for inactive products.
 void setKeyword(java.lang.String keyword)
          Sets the key word.
 
Methods inherited from class com.elasticpath.domain.search.impl.AbstractSearchCriteriaImpl
getLocale, isFuzzySearchDisabled, setFuzzySearchDisabled, setLocale
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.search.SearchCriteria
getLocale, isFuzzySearchDisabled, setFuzzySearchDisabled, setLocale
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Constructor Detail

ProductSearchCriteriaImpl

public ProductSearchCriteriaImpl()
Method Detail

getBrandCode

public java.lang.String getBrandCode()
Returns the brand code.

Specified by:
getBrandCode in interface ProductSearchCriteria
Returns:
the brand code

getCategoryUids

public java.util.Set getCategoryUids()
Returns a set of category uids.

Specified by:
getCategoryUids in interface ProductSearchCriteria
Returns:
the the set of category uids

getKeyword

public java.lang.String getKeyword()
Returns the key word.

Specified by:
getKeyword in interface ProductSearchCriteria
Returns:
the key word

isActiveOnly

public boolean isActiveOnly()
Returns true if searching only for active products.

Specified by:
isActiveOnly in interface ProductSearchCriteria
Returns:
true if searching only for active products

isInActiveOnly

public boolean isInActiveOnly()
Returns true if searching only for inactive products.

Specified by:
isInActiveOnly in interface ProductSearchCriteria
Returns:
true if searching only for in active products

setActiveOnly

public void setActiveOnly(boolean activeOnlyFlag)
Sets the active-only flag to true if only searching for active products.

Specified by:
setActiveOnly in interface ProductSearchCriteria
Parameters:
activeOnlyFlag - the active-only flag

setBrandCode

public void setBrandCode(java.lang.String brandCode)
Sets the brand code.

Specified by:
setBrandCode in interface ProductSearchCriteria
Parameters:
brandCode - the brand code

setCategoryUids

public void setCategoryUids(java.util.Set categoryUids)
Sets the set of category uids.

Specified by:
setCategoryUids in interface ProductSearchCriteria
Parameters:
categoryUids - the set of category uids

setInActiveOnly

public void setInActiveOnly(boolean inActiveOnlyFlag)
Sets the inactive-only flag to true if only searching for inactive products.

Specified by:
setInActiveOnly in interface ProductSearchCriteria
Parameters:
inActiveOnlyFlag - the inactive-only flag

setKeyword

public void setKeyword(java.lang.String keyword)
Sets the key word.

Specified by:
setKeyword in interface ProductSearchCriteria
Parameters:
keyword - the key word