org.broadleafcommerce.core.web.controller.catalog
Class CatalogController
java.lang.Object
org.broadleafcommerce.core.web.controller.catalog.CatalogController
@Controller
@RequestMapping(value="/store")
public class CatalogController
- extends Object
|
Method Summary |
protected boolean |
addCategoryListToModel(List<Category> categoryList,
Category rootCategory,
String url,
org.springframework.ui.ModelMap model)
|
protected void |
addCategoryToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model,
Category rootCategory)
|
protected boolean |
addProductsToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model,
CatalogSort catalogSort)
|
protected int |
findProductPositionInList(Product product,
List<Product> products)
|
CatalogService |
getCatalogService()
|
String |
getCategoryTemplatePrefix()
|
String |
getDefaultCategoryView()
|
String |
getDefaultProductView()
|
RatingService |
getRatingService()
|
Long |
getRootCategoryId()
|
String |
getRootCategoryName()
|
AddToCartItem |
initAddToCartItem()
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
|
void |
setCatalogService(CatalogService catalogService)
|
void |
setCategoryTemplatePrefix(String categoryTemplatePrefix)
|
void |
setDefaultCategoryView(String defaultCategoryView)
|
void |
setDefaultProductView(String defaultProductView)
|
void |
setRatingService(RatingService ratingService)
|
void |
setRootCategoryId(Long rootCategoryId)
|
void |
setRootCategoryName(String rootCategoryName)
|
String |
sortCatalog(org.springframework.ui.ModelMap model,
javax.servlet.http.HttpServletRequest request,
CatalogSort catalogSort)
|
protected boolean |
validateProductAndAddToModel(Product product,
org.springframework.ui.ModelMap model)
|
String |
viewCatalog(org.springframework.ui.ModelMap model,
javax.servlet.http.HttpServletRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cartService
protected CartService cartService
customerState
protected CustomerState customerState
CatalogController
public CatalogController()
viewCatalog
@RequestMapping(method=GET)
public String viewCatalog(org.springframework.ui.ModelMap model,
javax.servlet.http.HttpServletRequest request)
initAddToCartItem
@ModelAttribute(value="addToCartItem")
public AddToCartItem initAddToCartItem()
sortCatalog
@RequestMapping(method=POST)
public String sortCatalog(org.springframework.ui.ModelMap model,
javax.servlet.http.HttpServletRequest request,
@ModelAttribute
CatalogSort catalogSort)
addCategoryToModel
protected void addCategoryToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model,
Category rootCategory)
findProductPositionInList
protected int findProductPositionInList(Product product,
List<Product> products)
addCategoryListToModel
protected boolean addCategoryListToModel(List<Category> categoryList,
Category rootCategory,
String url,
org.springframework.ui.ModelMap model)
validateProductAndAddToModel
protected boolean validateProductAndAddToModel(Product product,
org.springframework.ui.ModelMap model)
addProductsToModel
protected boolean addProductsToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model,
CatalogSort catalogSort)
initBinder
@InitBinder
public void initBinder(org.springframework.web.bind.WebDataBinder binder)
getRootCategoryId
public Long getRootCategoryId()
getRootCategoryName
public String getRootCategoryName()
setRootCategoryId
public void setRootCategoryId(Long rootCategoryId)
setRootCategoryName
public void setRootCategoryName(String rootCategoryName)
getCatalogService
public CatalogService getCatalogService()
setCatalogService
public void setCatalogService(CatalogService catalogService)
getRatingService
public RatingService getRatingService()
setRatingService
public void setRatingService(RatingService ratingService)
getDefaultCategoryView
public String getDefaultCategoryView()
setDefaultCategoryView
public void setDefaultCategoryView(String defaultCategoryView)
getDefaultProductView
public String getDefaultProductView()
setDefaultProductView
public void setDefaultProductView(String defaultProductView)
getCategoryTemplatePrefix
public String getCategoryTemplatePrefix()
setCategoryTemplatePrefix
public void setCategoryTemplatePrefix(String categoryTemplatePrefix)
Copyright © 2012. All Rights Reserved.