org.broadleafcommerce.admin.web.controller.entity
Class AdminProductController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
          extended by org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
              extended by org.broadleafcommerce.admin.web.controller.entity.AdminProductController

@Controller(value="blAdminProductController")
@RequestMapping(value="/product")
public class AdminProductController
extends AdminBasicEntityController

Handles admin operations for the Product entity. Editing a product requires custom criteria in order to properly invoke the ProductCustomPersistenceHandler

Author:
Andre Azzolini (apazzolini)
See Also:
ProductCustomPersistenceHandler}

Field Summary
protected static String SECTION_KEY
           
 
Fields inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
adminRemoteSecurityService, entityConfiguration, entityValidator, formService, service
 
Fields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
adminNavigationService
 
Constructor Summary
AdminProductController()
           
 
Method Summary
 String[] getSectionCustomCriteria()
           
protected  String getSectionKey(Map<String,String> pathVars)
           
protected  String showAddAdditionalSku(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String id)
           
 String showAddCollectionItem(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String,String> pathVars, String id, String collectionField, org.springframework.util.MultiValueMap<String,String> requestParams)
           
protected  String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String id, String collectionItemId)
           
 String showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String,String> pathVars, String id, String collectionField, String collectionItemId)
           
 String viewEntityForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String,String> pathVars, String id)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
addCollectionItem, addEntity, attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionFieldRecords, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, initBinder, removeCollectionItem, removeEntity, saveEntity, setModelAttributes, showSelectCollectionItem, showViewCollectionItem, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityList
 
Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
getContextPath, isAjaxRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECTION_KEY

protected static final String SECTION_KEY
See Also:
Constant Field Values
Constructor Detail

AdminProductController

public AdminProductController()
Method Detail

getSectionKey

protected String getSectionKey(Map<String,String> pathVars)
Overrides:
getSectionKey in class AdminBasicEntityController

getSectionCustomCriteria

public String[] getSectionCustomCriteria()
Overrides:
getSectionCustomCriteria in class AdminBasicEntityController

showAddAdditionalSku

protected String showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      org.springframework.ui.Model model,
                                      String id)
                               throws Exception
Throws:
Exception

showUpdateAdditionalSku

protected String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         org.springframework.ui.Model model,
                                         String id,
                                         String collectionItemId)
                                  throws Exception
Throws:
Exception

showUpdateCollectionItem

@RequestMapping(value="/{id}/{collectionField:.*}/{collectionItemId}",
                method=GET)
public String showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response,
                                                      org.springframework.ui.Model model,
                                                      @PathVariable
                                                      Map<String,String> pathVars,
                                                      @PathVariable(value="id")
                                                      String id,
                                                      @PathVariable(value="collectionField")
                                                      String collectionField,
                                                      @PathVariable(value="collectionItemId")
                                                      String collectionItemId)
                                throws Exception
Overrides:
showUpdateCollectionItem in class AdminBasicEntityController
Throws:
Exception

showAddCollectionItem

@RequestMapping(value="/{id}/{collectionField}/add",
                method=GET)
public String showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response,
                                                   org.springframework.ui.Model model,
                                                   @PathVariable
                                                   Map<String,String> pathVars,
                                                   @PathVariable(value="id")
                                                   String id,
                                                   @PathVariable(value="collectionField")
                                                   String collectionField,
                                                   @RequestParam
                                                   org.springframework.util.MultiValueMap<String,String> requestParams)
                             throws Exception
Overrides:
showAddCollectionItem in class AdminBasicEntityController
Throws:
Exception

viewEntityForm

@RequestMapping(value="/{id}",
                method=GET)
public String viewEntityForm(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.ui.Model model,
                                            @PathVariable
                                            Map<String,String> pathVars,
                                            @PathVariable(value="id")
                                            String id)
                      throws Exception
Overrides:
viewEntityForm in class AdminBasicEntityController
Throws:
Exception


Copyright © 2013. All Rights Reserved.