Class AdminCatalogActionsController

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

@Controller("blAdminCatalogActionsController") public class AdminCatalogActionsController extends org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
Controller that responds to custom catalog actions. These would normally be hooked up in customized controllers like AdminProductController
Author:
Phillip Verheyden (phillipuniverse)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.springframework.context.MessageSource
     

    Fields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController

    adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, eps, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, LOG, MODAL_CONTAINER_VIEW, service, validationService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    generateSkus(jakarta.servlet.http.HttpServletRequest request, jakarta.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, attachSectionSpecificInfo, createSectionCrumb, declareForceUseAdditionStatusFilter, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessage

    Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController

    addDeepLink, getContextPath, isAjaxRequest, jsonResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • adminCatalogService

      protected AdminCatalogService adminCatalogService
    • messageSource

      @Autowired protected org.springframework.context.MessageSource messageSource
  • Constructor Details

    • AdminCatalogActionsController

      public AdminCatalogActionsController()
  • Method Details

    • generateSkus

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