com.softslate.commerce.businessobjects.product
Interface ProductList

All Superinterfaces:
BusinessObject
All Known Implementing Classes:
ProductListBean

public interface ProductList
extends BusinessObject

Interface representing a list of products in the the system. There are three types of ProductList that are determined by the value of the productListType property:

  1. The list of all the active products in the store.
  2. The list of products under a given category.
  3. The list of products matching a given search request.

An instance of this interface is created from the Struts layer in response to requests to view the active products in the store, a given category's products, or a the results of a search. The products become accessible through the productListCollection property of this ProductList.

When the application needs to create an instance that implements ProductList, BusinessObjectFactory finds the name of the Java class to instantiate from the "productListImplementer" setting in the npcSetting database table.

The default "productListImplementer" is ProductListBean.

Author:
David Tobey

Method Summary
 void addFormatting(java.util.Locale locale, java.lang.String currencyCode)
           
 int getCategoryID()
           
 int getFirstRow()
           
 int getItemCount()
           
 int getItemsPerPage()
           
 java.util.Collection getProductListCollection()
           
 int getProductListType()
           
 java.lang.String getSearchString()
           
 java.lang.String[] getStopWords()
           
 void setCategoryID(int categoryID)
           
 void setFirstRow(int firstRow)
           
 void setItemCount(int itemCount)
           
 void setItemsPerPage(int itemsPerPage)
           
 void setProductListCollection(java.util.Collection productListCollection)
           
 void setProductListType(int productListType)
           
 void setSearchString(java.lang.String searchString)
           
 void setStopWords(java.lang.String[] stopWords)
           
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Method Detail

getProductListType

public int getProductListType()

setProductListType

public void setProductListType(int productListType)

getCategoryID

public int getCategoryID()

setCategoryID

public void setCategoryID(int categoryID)

getItemsPerPage

public int getItemsPerPage()

setItemsPerPage

public void setItemsPerPage(int itemsPerPage)

getFirstRow

public int getFirstRow()

setFirstRow

public void setFirstRow(int firstRow)

getItemCount

public int getItemCount()

setItemCount

public void setItemCount(int itemCount)

getSearchString

public java.lang.String getSearchString()

setSearchString

public void setSearchString(java.lang.String searchString)

getStopWords

public java.lang.String[] getStopWords()

setStopWords

public void setStopWords(java.lang.String[] stopWords)

getProductListCollection

public java.util.Collection getProductListCollection()

setProductListCollection

public void setProductListCollection(java.util.Collection productListCollection)

addFormatting

public void addFormatting(java.util.Locale locale,
                          java.lang.String currencyCode)


Copyright © SoftSlate, Inc. 2003–2005