Class SearchListBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.SearchListBean
- All Implemented Interfaces:
BusinessObject
,SearchList
,Serializable
Object representing a list of products in the system.
SearchListBean
is the default implementation of the
SearchList
interface for the application.
- Author:
- Jason McWilliams
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private int
private Map
private Map
private Map
private Collection
private String[]
private int
private String
private int
private int
(package private) static org.apache.commons.logging.Log
private Collection
private org.apache.lucene.search.Query
static final int
private int
private String[]
private float[]
private int[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
private Collection
private int
private String
private static final long
private Collection
private Map
private String
private org.apache.lucene.search.TopDocs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatting
(Locale locale, String currencyCode) int
String[]
int
int
int
org.apache.lucene.search.Query
int
String[]
float[]
int[]
int
org.apache.lucene.search.TopDocs
void
setCategoryID
(int categoryID) void
setCategoryMap
(Map categoryMap) void
setFacetCategories
(Map facetCategories) void
setFacetManufacturers
(Map facetManufacturers) void
setFacetResultCollection
(Collection facetResultCollection) void
void
setFirstRow
(int firstRow) void
setIndexDir
(String indexDir) void
setItemCount
(int itemCount) void
setItemsPerPage
(int itemsPerPage) void
setLuceneDocCollection
(Collection luceneDocCollection) void
setLuceneQuery
(org.apache.lucene.search.Query luceneQuery) void
setManufacturerID
(int manufacturerID) void
setObjectExcerpts
(String[] objectExcerpts) void
setObjectScores
(float[] objectScores) void
setObjectTypes
(int[] objectTypes) void
setSearchListCollection
(Collection searchListCollection) void
setSearchListType
(int searchListType) void
setSearchString
(String searchString) void
setSimpleFacetResultCollection
(Collection simpleFacetResultCollection) void
setSimpleFacetResultMap
(Map simpleFacetResultMap) void
void
setTopDocs
(org.apache.lucene.search.TopDocs topDocs) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
SEARCH_PRODUCTS
public static final int SEARCH_PRODUCTS- See Also:
-
SEARCH_CATEGORIES
public static final int SEARCH_CATEGORIES- See Also:
-
SEARCH_MANUFACTURERS
public static final int SEARCH_MANUFACTURERS- See Also:
-
SEARCH_ALL
public static final int SEARCH_ALL- See Also:
-
SEARCH_PRODUCTS_WITHIN_CATEGORY
public static final int SEARCH_PRODUCTS_WITHIN_CATEGORY- See Also:
-
SEARCH_PRODUCTS_WITHIN_MANUFACTURER
public static final int SEARCH_PRODUCTS_WITHIN_MANUFACTURER- See Also:
-
SEARCH_PRODUCTS_FOR_PRODUCT_LIST
public static final int SEARCH_PRODUCTS_FOR_PRODUCT_LIST- See Also:
-
PRODUCT
public static final int PRODUCT- See Also:
-
CATEGORY
public static final int CATEGORY- See Also:
-
MANUFACTURER
public static final int MANUFACTURER- See Also:
-
log
static org.apache.commons.logging.Log log -
objectTypes
private int[] objectTypes -
objectScores
private float[] objectScores -
objectExcerpts
-
searchListType
private int searchListType -
categoryID
private int categoryID -
manufacturerID
private int manufacturerID -
itemsPerPage
private int itemsPerPage -
firstRow
private int firstRow -
itemCount
private int itemCount -
searchString
-
sortBy
-
indexDir
-
searchListCollection
-
luceneDocCollection
-
facetResultCollection
-
simpleFacetResultCollection
-
simpleFacetResultMap
-
topDocs
private org.apache.lucene.search.TopDocs topDocs -
luceneQuery
private org.apache.lucene.search.Query luceneQuery -
facets
-
facetCategories
-
facetManufacturers
-
categoryMap
-
-
Constructor Details
-
SearchListBean
public SearchListBean()
-
-
Method Details
-
getObjectTypes
public int[] getObjectTypes()- Specified by:
getObjectTypes
in interfaceSearchList
-
setObjectTypes
public void setObjectTypes(int[] objectTypes) - Specified by:
setObjectTypes
in interfaceSearchList
-
getObjectScores
public float[] getObjectScores()- Specified by:
getObjectScores
in interfaceSearchList
-
setObjectScores
public void setObjectScores(float[] objectScores) - Specified by:
setObjectScores
in interfaceSearchList
-
getObjectExcerpts
- Specified by:
getObjectExcerpts
in interfaceSearchList
-
setObjectExcerpts
- Specified by:
setObjectExcerpts
in interfaceSearchList
-
getSearchListType
public int getSearchListType()- Specified by:
getSearchListType
in interfaceSearchList
-
setSearchListType
public void setSearchListType(int searchListType) - Specified by:
setSearchListType
in interfaceSearchList
-
getCategoryID
public int getCategoryID()- Specified by:
getCategoryID
in interfaceSearchList
-
setCategoryID
public void setCategoryID(int categoryID) - Specified by:
setCategoryID
in interfaceSearchList
-
getManufacturerID
public int getManufacturerID()- Specified by:
getManufacturerID
in interfaceSearchList
-
setManufacturerID
public void setManufacturerID(int manufacturerID) - Specified by:
setManufacturerID
in interfaceSearchList
-
getItemsPerPage
public int getItemsPerPage()- Specified by:
getItemsPerPage
in interfaceSearchList
-
setItemsPerPage
public void setItemsPerPage(int itemsPerPage) - Specified by:
setItemsPerPage
in interfaceSearchList
-
getFirstRow
public int getFirstRow()- Specified by:
getFirstRow
in interfaceSearchList
-
setFirstRow
public void setFirstRow(int firstRow) - Specified by:
setFirstRow
in interfaceSearchList
-
getItemCount
public int getItemCount()- Specified by:
getItemCount
in interfaceSearchList
-
setItemCount
public void setItemCount(int itemCount) - Specified by:
setItemCount
in interfaceSearchList
-
getSearchString
- Specified by:
getSearchString
in interfaceSearchList
-
setSearchString
- Specified by:
setSearchString
in interfaceSearchList
-
getSortBy
- Specified by:
getSortBy
in interfaceSearchList
-
setSortBy
- Specified by:
setSortBy
in interfaceSearchList
-
getIndexDir
- Specified by:
getIndexDir
in interfaceSearchList
-
setIndexDir
- Specified by:
setIndexDir
in interfaceSearchList
-
getSearchListCollection
- Specified by:
getSearchListCollection
in interfaceSearchList
-
setSearchListCollection
- Specified by:
setSearchListCollection
in interfaceSearchList
-
getLuceneDocCollection
- Specified by:
getLuceneDocCollection
in interfaceSearchList
-
setLuceneDocCollection
- Specified by:
setLuceneDocCollection
in interfaceSearchList
-
getFacetResultCollection
- Specified by:
getFacetResultCollection
in interfaceSearchList
-
setFacetResultCollection
- Specified by:
setFacetResultCollection
in interfaceSearchList
-
getSimpleFacetResultCollection
- Specified by:
getSimpleFacetResultCollection
in interfaceSearchList
-
setSimpleFacetResultCollection
- Specified by:
setSimpleFacetResultCollection
in interfaceSearchList
-
getSimpleFacetResultMap
- Specified by:
getSimpleFacetResultMap
in interfaceSearchList
-
setSimpleFacetResultMap
- Specified by:
setSimpleFacetResultMap
in interfaceSearchList
-
getTopDocs
public org.apache.lucene.search.TopDocs getTopDocs()- Specified by:
getTopDocs
in interfaceSearchList
-
setTopDocs
public void setTopDocs(org.apache.lucene.search.TopDocs topDocs) - Specified by:
setTopDocs
in interfaceSearchList
-
getLuceneQuery
public org.apache.lucene.search.Query getLuceneQuery()- Specified by:
getLuceneQuery
in interfaceSearchList
-
setLuceneQuery
public void setLuceneQuery(org.apache.lucene.search.Query luceneQuery) - Specified by:
setLuceneQuery
in interfaceSearchList
-
getFacets
- Specified by:
getFacets
in interfaceSearchList
-
setFacets
- Specified by:
setFacets
in interfaceSearchList
-
getFacetCategories
- Specified by:
getFacetCategories
in interfaceSearchList
-
setFacetCategories
- Specified by:
setFacetCategories
in interfaceSearchList
-
getFacetManufacturers
- Specified by:
getFacetManufacturers
in interfaceSearchList
-
setFacetManufacturers
- Specified by:
setFacetManufacturers
in interfaceSearchList
-
getCategoryMap
- Specified by:
getCategoryMap
in interfaceSearchList
-
setCategoryMap
- Specified by:
setCategoryMap
in interfaceSearchList
-
addFormatting
- Specified by:
addFormatting
in interfaceSearchList
-