Package org.apache.ofbiz.product.product
Class ProductSearchSession.ProductSearchOptions
- java.lang.Object
-
- org.apache.ofbiz.product.product.ProductSearchSession.ProductSearchOptions
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ProductSearchSession
public static class ProductSearchSession.ProductSearchOptions extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
changed
protected java.util.List<ProductSearch.ProductSearchConstraint>
constraintList
protected java.lang.String
paging
protected java.lang.Integer
previousViewSize
protected ProductSearch.ResultSortOrder
resultSortOrder
protected java.lang.String
topProductCategoryId
protected java.lang.Integer
viewIndex
protected java.lang.Integer
viewSize
-
Constructor Summary
Constructors Constructor Description ProductSearchOptions()
ProductSearchOptions(ProductSearchSession.ProductSearchOptions productSearchOptions)
Basic copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addConstraint(ProductSearch.ProductSearchConstraint productSearchConstraint, HttpSession session)
static void
clearSearchOptions(HttpSession session)
void
clearViewInfo()
java.util.List<ProductSearch.ProductSearchConstraint>
getConstraintList()
static java.util.List<ProductSearch.ProductSearchConstraint>
getConstraintList(HttpSession session)
java.lang.String
getPaging()
Get the pagingjava.lang.Integer
getPreviousViewSize()
Get the previous view sizeProductSearch.ResultSortOrder
getResultSortOrder()
static ProductSearch.ResultSortOrder
getResultSortOrder(HttpServletRequest request)
java.lang.String
getTopProductCategoryId()
java.lang.Integer
getViewIndex()
Get the view sizejava.lang.Integer
getViewSize()
Get the view sizejava.util.List<java.lang.String>
searchGetConstraintStrings(boolean detailed, Delegator delegator, java.util.Locale locale)
java.util.List<java.lang.String>
searchGetConstraintStrings(boolean detailed, LocalDispatcher dispatcher, java.util.Locale locale)
void
setPaging(java.lang.String paging)
Set the pagingvoid
setPreviousViewSize(java.lang.Integer previousViewSize)
Set the previous view sizestatic void
setResultSortOrder(ProductSearch.ResultSortOrder resultSortOrder, HttpSession session)
void
setTopProductCategoryId(java.lang.String topProductCategoryId)
static void
setTopProductCategoryId(java.lang.String topProductCategoryId, HttpSession session)
void
setViewIndex(java.lang.Integer viewIndex)
Set the view indexvoid
setViewIndex(java.lang.String viewIndexStr)
Set the view indexvoid
setViewSize(java.lang.Integer viewSize)
Set the view sizevoid
setViewSize(java.lang.String viewSizeStr)
Set the view size
-
-
-
Field Detail
-
constraintList
protected java.util.List<ProductSearch.ProductSearchConstraint> constraintList
-
topProductCategoryId
protected java.lang.String topProductCategoryId
-
resultSortOrder
protected ProductSearch.ResultSortOrder resultSortOrder
-
viewIndex
protected java.lang.Integer viewIndex
-
viewSize
protected java.lang.Integer viewSize
-
changed
protected boolean changed
-
paging
protected java.lang.String paging
-
previousViewSize
protected java.lang.Integer previousViewSize
-
-
Constructor Detail
-
ProductSearchOptions
public ProductSearchOptions()
-
ProductSearchOptions
public ProductSearchOptions(ProductSearchSession.ProductSearchOptions productSearchOptions)
Basic copy constructor
-
-
Method Detail
-
getConstraintList
public java.util.List<ProductSearch.ProductSearchConstraint> getConstraintList()
-
getConstraintList
public static java.util.List<ProductSearch.ProductSearchConstraint> getConstraintList(HttpSession session)
-
addConstraint
public static void addConstraint(ProductSearch.ProductSearchConstraint productSearchConstraint, HttpSession session)
-
getResultSortOrder
public ProductSearch.ResultSortOrder getResultSortOrder()
-
getResultSortOrder
public static ProductSearch.ResultSortOrder getResultSortOrder(HttpServletRequest request)
-
setResultSortOrder
public static void setResultSortOrder(ProductSearch.ResultSortOrder resultSortOrder, HttpSession session)
-
clearSearchOptions
public static void clearSearchOptions(HttpSession session)
-
clearViewInfo
public void clearViewInfo()
-
getViewIndex
public java.lang.Integer getViewIndex()
Get the view size- Returns:
- returns the viewIndex.
-
setViewIndex
public void setViewIndex(java.lang.Integer viewIndex)
Set the view index- Parameters:
viewIndex
- the viewIndex to set.
-
setViewIndex
public void setViewIndex(java.lang.String viewIndexStr)
Set the view index- Parameters:
viewIndexStr
- the viewIndex to set.
-
getViewSize
public java.lang.Integer getViewSize()
Get the view size- Returns:
- returns the view size.
-
setViewSize
public void setViewSize(java.lang.Integer viewSize)
Set the view size- Parameters:
viewSize
- the view size to set.
-
setViewSize
public void setViewSize(java.lang.String viewSizeStr)
Set the view size- Parameters:
viewSizeStr
- the view size to set.
-
getPaging
public java.lang.String getPaging()
Get the paging- Returns:
- Returns the paging
-
setPaging
public void setPaging(java.lang.String paging)
Set the paging- Parameters:
paging
- the paging to set
-
getPreviousViewSize
public java.lang.Integer getPreviousViewSize()
Get the previous view size- Returns:
- returns the previous view size
-
setPreviousViewSize
public void setPreviousViewSize(java.lang.Integer previousViewSize)
Set the previous view size- Parameters:
previousViewSize
- the previousViewSize to set.
-
getTopProductCategoryId
public java.lang.String getTopProductCategoryId()
-
setTopProductCategoryId
public static void setTopProductCategoryId(java.lang.String topProductCategoryId, HttpSession session)
-
setTopProductCategoryId
public void setTopProductCategoryId(java.lang.String topProductCategoryId)
-
searchGetConstraintStrings
public java.util.List<java.lang.String> searchGetConstraintStrings(boolean detailed, Delegator delegator, java.util.Locale locale)
-
searchGetConstraintStrings
public java.util.List<java.lang.String> searchGetConstraintStrings(boolean detailed, LocalDispatcher dispatcher, java.util.Locale locale)
-
-