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:
java.io.Serializable
- Enclosing class:
- ProductSearch
public static class ProductSearch.CategoryConstraint extends ProductSearch.ProductSearchConstraint
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
constraintName
protected java.lang.Boolean
exclude
This is a tri-state variable: null = Include, true = Exclude, false = AlwaysIncludeprotected boolean
includeSubCategories
protected java.lang.String
productCategoryId
-
Constructor Summary
Constructors Constructor Description CategoryConstraint(java.lang.String productCategoryId, boolean includeSubCategories, java.lang.Boolean exclude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(ProductSearch.ProductSearchContext productSearchContext)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
prettyPrintConstraint(Delegator delegator, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuffjava.lang.String
prettyPrintConstraint(LocalDispatcher dispatcher, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuff
-
-
-
Field Detail
-
constraintName
public static final java.lang.String constraintName
- See Also:
- Constant Field Values
-
productCategoryId
protected java.lang.String productCategoryId
-
includeSubCategories
protected boolean includeSubCategories
-
exclude
protected java.lang.Boolean exclude
This is a tri-state variable: null = Include, true = Exclude, false = AlwaysInclude
-
-
Constructor Detail
-
CategoryConstraint
public CategoryConstraint(java.lang.String productCategoryId, boolean includeSubCategories, java.lang.Boolean exclude)
- Parameters:
productCategoryId
-includeSubCategories
-exclude
- This is a tri-state variable: null = Include, true = Exclude, false = AlwaysInclude
-
-
Method Detail
-
addConstraint
public void addConstraint(ProductSearch.ProductSearchContext productSearchContext)
- Specified by:
addConstraint
in classProductSearch.ProductSearchConstraint
-
prettyPrintConstraint
public java.lang.String prettyPrintConstraint(Delegator delegator, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuff- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
prettyPrintConstraint
public java.lang.String prettyPrintConstraint(LocalDispatcher dispatcher, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuff- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-