Package org.apache.ofbiz.product.product
Class ProductSearch.CategoryConstraint
java.lang.Object
org.apache.ofbiz.product.product.ProductSearch.ProductSearchConstraint
org.apache.ofbiz.product.product.ProductSearch.CategoryConstraint
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProductSearch
- See Also:
-
Constructor Summary
ConstructorDescriptionCategoryConstraint
(String productCategoryId, boolean includeSubCategories, Boolean exclude) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstraint
(ProductSearch.ProductSearchContext productSearchContext) boolean
Gets exclude.Gets product category id.int
hashCode()
boolean
Is include sub categories boolean.prettyPrintConstraint
(Delegator delegator, boolean detailed, Locale locale) pretty print for log messages and even UI stuffprettyPrintConstraint
(LocalDispatcher dispatcher, boolean detailed, Locale locale) pretty print for log messages and even UI stuff
-
Constructor Details
-
CategoryConstraint
- Parameters:
productCategoryId
-includeSubCategories
-exclude
- This is a tri-state variable: null = Include, true = Exclude, false = AlwaysInclude
-
-
Method Details
-
getProductCategoryId
Gets product category id.- Returns:
- the product category id
-
isIncludeSubCategories
public boolean isIncludeSubCategories()Is include sub categories boolean.- Returns:
- the boolean
-
getExclude
Gets exclude.- Returns:
- the exclude
-
addConstraint
- Specified by:
addConstraint
in classProductSearch.ProductSearchConstraint
-
prettyPrintConstraint
pretty print for log messages and even UI stuff- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
prettyPrintConstraint
pretty print for log messages and even UI stuff- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
hashCode
public int hashCode() -
equals
-