Package org.apache.ofbiz.product.product
Class ProductSearchSession.ProductSearchOptions
java.lang.Object
org.apache.ofbiz.product.product.ProductSearchSession.ProductSearchOptions
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProductSearchSession
public static class ProductSearchSession.ProductSearchOptions
extends Object
implements Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionProductSearchOptions
(ProductSearchSession.ProductSearchOptions productSearchOptions) Basic copy constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addConstraint
(ProductSearch.ProductSearchConstraint productSearchConstraint, HttpSession session) static void
clearSearchOptions
(HttpSession session) void
Clear view info.Gets constraint list.getConstraintList
(HttpSession session) Get the pagingGet the previous view sizeGets result sort order.getResultSortOrder
(HttpServletRequest request) Gets top product category id.Get the view sizeGet the view sizesearchGetConstraintStrings
(boolean detailed, Delegator delegator, Locale locale) Search get constraint strings list.searchGetConstraintStrings
(boolean detailed, LocalDispatcher dispatcher, Locale locale) Search get constraint strings list.void
Set the pagingvoid
setPreviousViewSize
(Integer previousViewSize) Set the previous view sizestatic void
setResultSortOrder
(ProductSearch.ResultSortOrder resultSortOrder, HttpSession session) void
setTopProductCategoryId
(String topProductCategoryId) Sets top product category id.static void
setTopProductCategoryId
(String topProductCategoryId, HttpSession session) void
setViewIndex
(Integer viewIndex) Set the view indexvoid
setViewIndex
(String viewIndexStr) Set the view indexvoid
setViewSize
(Integer viewSize) Set the view sizevoid
setViewSize
(String viewSizeStr) Set the view size
-
Constructor Details
-
ProductSearchOptions
public ProductSearchOptions() -
ProductSearchOptions
Basic copy constructor
-
-
Method Details
-
getConstraintList
Gets constraint list.- Returns:
- the constraint list
-
getConstraintList
-
addConstraint
public static void addConstraint(ProductSearch.ProductSearchConstraint productSearchConstraint, HttpSession session) -
getResultSortOrder
Gets result sort order.- Returns:
- the result sort order
-
getResultSortOrder
-
setResultSortOrder
public static void setResultSortOrder(ProductSearch.ResultSortOrder resultSortOrder, HttpSession session) -
clearSearchOptions
-
clearViewInfo
public void clearViewInfo()Clear view info. -
getViewIndex
Get the view size- Returns:
- returns the viewIndex.
-
setViewIndex
Set the view index- Parameters:
viewIndex
- the viewIndex to set.
-
setViewIndex
Set the view index- Parameters:
viewIndexStr
- the viewIndex to set.
-
getViewSize
Get the view size- Returns:
- returns the view size.
-
setViewSize
Set the view size- Parameters:
viewSize
- the view size to set.
-
setViewSize
Set the view size- Parameters:
viewSizeStr
- the view size to set.
-
getPaging
Get the paging- Returns:
- Returns the paging
-
setPaging
Set the paging- Parameters:
paging
- the paging to set
-
getPreviousViewSize
Get the previous view size- Returns:
- returns the previous view size
-
setPreviousViewSize
Set the previous view size- Parameters:
previousViewSize
- the previousViewSize to set.
-
getTopProductCategoryId
Gets top product category id.- Returns:
- the top product category id
-
setTopProductCategoryId
-
setTopProductCategoryId
Sets top product category id.- Parameters:
topProductCategoryId
- the top product category id
-
searchGetConstraintStrings
public List<String> searchGetConstraintStrings(boolean detailed, Delegator delegator, Locale locale) Search get constraint strings list.- Parameters:
detailed
- the detaileddelegator
- the delegatorlocale
- the locale- Returns:
- the list
-
searchGetConstraintStrings
public List<String> searchGetConstraintStrings(boolean detailed, LocalDispatcher dispatcher, Locale locale) Search get constraint strings list.- Parameters:
detailed
- the detaileddispatcher
- the dispatcherlocale
- the locale- Returns:
- the list
-