org.broadleafcommerce.core.web.catalog
Class SimpleCatalogController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.broadleafcommerce.core.web.catalog.SimpleCatalogController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class SimpleCatalogController
extends org.springframework.web.servlet.mvc.AbstractController


Field Summary
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
SimpleCatalogController()
           
 
Method Summary
protected  void addCategoryToModel(javax.servlet.http.HttpServletRequest request, Map<String,Object> model)
           
protected  boolean addProductsToModel(javax.servlet.http.HttpServletRequest request, Map<String,Object> model)
           
protected  List<Category> buildCategoryList(Category rootCategory, Category currentCategory, String url)
           
protected  int findProductPositionInList(Product product, List<Product> products)
           
 CatalogService getCatalogService()
           
 String getCategoryTemplatePrefix()
           
 String getDefaultCategoryView()
           
 String getDefaultProductView()
           
 Long getRootCategoryId()
           
protected  org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setCatalogService(CatalogService catalogService)
           
 void setCategoryTemplatePrefix(String categoryTemplatePrefix)
           
 void setDefaultCategoryView(String defaultCategoryView)
           
 void setDefaultProductView(String defaultProductView)
           
 void setRootCategoryId(Long rootCategoryId)
           
protected  boolean validateProductAndAddToModel(Product product, Map<String,Object> model)
           
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCatalogController

public SimpleCatalogController()
Method Detail

handleRequestInternal

protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
Specified by:
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractController

addCategoryToModel

protected void addCategoryToModel(javax.servlet.http.HttpServletRequest request,
                                  Map<String,Object> model)

findProductPositionInList

protected int findProductPositionInList(Product product,
                                        List<Product> products)

buildCategoryList

protected List<Category> buildCategoryList(Category rootCategory,
                                           Category currentCategory,
                                           String url)

validateProductAndAddToModel

protected boolean validateProductAndAddToModel(Product product,
                                               Map<String,Object> model)

addProductsToModel

protected boolean addProductsToModel(javax.servlet.http.HttpServletRequest request,
                                     Map<String,Object> model)

getRootCategoryId

public Long getRootCategoryId()

setRootCategoryId

public void setRootCategoryId(Long rootCategoryId)

getCatalogService

public CatalogService getCatalogService()

setCatalogService

public void setCatalogService(CatalogService catalogService)

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.