org.broadleafcommerce.admin.web.controller.action
Class AdminCatalogActionsController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
          extended by org.broadleafcommerce.admin.web.controller.action.AdminCatalogActionsController

@Controller(value="blAdminCatalogActionsController")
public class AdminCatalogActionsController
extends AdminAbstractController

Controller that responds to custom catalog actions. These would normally be hooked up in customized controllers like AdminProductController

Author:
Phillip Verheyden (phillipuniverse)
See Also:
AdminProductController}

Field Summary
protected  AdminCatalogService adminCatalogService
           
 
Fields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
adminNavigationService, adminRemoteSecurityService, entityConfiguration, entityFormValidator, formService, service
 
Constructor Summary
AdminCatalogActionsController()
           
 
Method Summary
 Map<String,Object> generateSkus(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long productId, String skusFieldName)
          Invokes a separate service to generate a list of Skus for a particular Product and that Product's Product Options
 
Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributes
 
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

adminCatalogService

protected AdminCatalogService adminCatalogService
Constructor Detail

AdminCatalogActionsController

public AdminCatalogActionsController()
Method Detail

generateSkus

@RequestMapping(value="product/{productId}/{skusFieldName}/generate-skus",
                method=GET,
                produces="application/json")
@ResponseBody
public Map<String,Object> generateSkus(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response,
                                                                   org.springframework.ui.Model model,
                                                                   @PathVariable(value="productId")
                                                                   Long productId,
                                                                   @PathVariable(value="skusFieldName")
                                                                   String skusFieldName)
Invokes a separate service to generate a list of Skus for a particular Product and that Product's Product Options



Copyright © 2013. All Rights Reserved.